Class NoxSheetData
- Namespace
- Nox.Grid.Server
- Assembly
- Nox.Grid.Server.dll
A sheet. Only cells with content are stored (zero-based rows and columns).
public sealed class NoxSheetData
- Inheritance
-
NoxSheetData
- Inherited Members
Properties
AutoFilter
AutoFilter buttons on the first row.
public bool AutoFilter { get; set; }
Property Value
AutoFilterRange
Auto filter range such as "A2:H61" (multi-row headers, footer row). Empty: from A1 to the last cell.
public string AutoFilterRange { get; set; }
Property Value
Cells
public List<NoxCellData> Cells { get; set; }
Property Value
ColumnCount
The number of columns.
public int ColumnCount { get; set; }
Property Value
Columns
Column info (width, hidden, format, header). Missing columns use defaults.
public List<NoxColumnData> Columns { get; set; }
Property Value
FrozenColumns
public int FrozenColumns { get; set; }
Property Value
FrozenRows
public int FrozenRows { get; set; }
Property Value
Merges
public List<NoxMergeData> Merges { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
RowCount
The number of rows (shown even if there are no cells).
public int RowCount { get; set; }
Property Value
Rows
Row info (height, hidden). Missing rows use defaults.
public List<NoxRowData> Rows { get; set; }
Property Value
Methods
Cell(int, int)
Finds a cell (null if not found).
public NoxCellData Cell(int row, int col)
Parameters
Returns
FromObjects<T>(IEnumerable<T>, string, IDictionary<string, string>)
Creates a sheet from a list of objects. The first row is the header (property names or headers); each following row holds one object.
public static NoxSheetData FromObjects<T>(IEnumerable<T> items, string name = "Sheet1", IDictionary<string, string> headers = null)
Parameters
itemsIEnumerable<T>namestringheadersIDictionary<string, string>
Returns
Type Parameters
T
GetValue(int, int)
Gets a cell value (null if none).
public object GetValue(int row, int col)
Parameters
Returns
SetFormula(int, int, string)
Sets a formula ("=SUM(A1:A3)"). Throws NoxFormulaException on a syntax error.
public NoxCellData SetFormula(int row, int col, string formula)
Parameters
Returns
SetValue(int, int, object)
Sets a cell value (string, number, bool, DateTime, null). Creates the cell if needed.
public NoxCellData SetValue(int row, int col, object value)