Class ExcelRow
- Namespace
- SheetStream.Reading
- Assembly
- SheetStream.dll
One row read from a sheet. Values is zero-based like a DataRow (column A is index 0) and runs up to the last non-empty cell; missing cells are null.
public sealed class ExcelRow
- Inheritance
-
ExcelRow
- Inherited Members
Properties
Index
1-based row number in the sheet.
public int Index { get; }
Property Value
this[int]
Value at a zero-based column index, or null beyond the last cell.
public object? this[int column] { get; }
Parameters
columnint
Property Value
Values
Cell values: string, double, bool, DateTime (date-formatted numbers), TimeSpan (elapsed-time formats), ExcelErrorValue, or null. Formula cells yield their cached result.
public IReadOnlyList<object?> Values { get; }
Property Value
Methods
GetDateTime(int)
Value as a date; serial numbers are converted. Null when empty.
public DateTime? GetDateTime(int column)
Parameters
columnint
Returns
GetDouble(int)
Value as a number; text is parsed with the invariant culture. Null when empty.
public double? GetDouble(int column)
Parameters
columnint
Returns
GetString(int)
Value as text (numbers in invariant culture), or null.
public string? GetString(int column)
Parameters
columnint