using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace ExcelZipLib
{
[Serializable()]
[XmlType(Namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main")]
[XmlRoot("worksheet", Namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main")]
public class worksheet
{
///
/// The rows
///
[XmlArray("sheetData")]
[XmlArrayItem("row")]
[NonSerialized]
public List Rows;
///
/// The number of columns
///
[XmlIgnore]
public int NumberOfColumns; // Total number of columns in this worksheet
///
/// The maximum column index
///
public static int MaxColumnIndex = 0; // Temporary variable for import
///
/// Initializes a new instance of the class.
///
public worksheet()
{
}
///
/// Expands the rows.
///
public void ExpandRows()
{
foreach (var row in Rows)
row.ExpandCells(NumberOfColumns);
}
}
}