Class ProtoSheet
One sheet. Reading a cell or range records a sheets.range observation, which is what the
coverage collector aggregates: coverage is the ranges the test actually read, not what the file has.
public sealed class ProtoSheet
- Inheritance
-
ProtoSheet
- Inherited Members
- Extension Methods
Properties
ColumnCount
Columns in the used range.
public int ColumnCount { get; }
Property Value
Index
The sheet's position in the workbook, hidden sheets included.
public int Index { get; }
Property Value
IsHidden
public bool IsHidden { get; }
Property Value
Name
public string Name { get; }
Property Value
RowCount
Rows in the used range.
public int RowCount { get; }
Property Value
Methods
Cell(int, int)
Reads a cell by coordinates; row and column are 1-based.
public ProtoCell Cell(int row, int column)
Parameters
Returns
Cell(string)
Reads one cell; a reference outside the file is an empty cell, never an error.
public ProtoCell Cell(string reference)
Parameters
referencestring
Returns
Range(string)
Reads a range like A1:C10, row by row.
public ProtoRange Range(string reference)
Parameters
referencestring
Returns
Table(params int[])
Header-aware view of the sheet. Pass one or more header rows; a merged group header spanning columns plus the subheaders under it become one header path per column.
public ProtoTable Table(params int[] headerRows)
Parameters
headerRowsint[]