Files
GenericTeProgramLibrary/Source/TSRealLib/MAL/SupportProjects/ExcelZip/Row.cs
2025-03-13 12:04:22 -07:00

35 lines
718 B
C#

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