using System.Xml.Serialization; namespace ExcelZipLib { public class Row { /// /// The filled cells. /// [XmlElement("c")] public Cell[] FilledCells; /// /// The cells. /// [XmlIgnore] public Cell[] Cells; /// /// Expands the cells. /// /// The number of columns. public void ExpandCells(int NumberOfColumns) { Cells = new Cell[NumberOfColumns]; foreach (var cell in FilledCells) { Cells[cell.ColumnIndex] = cell; } FilledCells = null; } } }