Big changes
This commit is contained in:
35
Source/TSRealLib/MAL/SupportProjects/ExcelZip/Row.cs
Normal file
35
Source/TSRealLib/MAL/SupportProjects/ExcelZip/Row.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user