Click or drag to resize
NanoXLSX

WorksheetGetFirstRowNumber Method

Gets the first existing row number in the current worksheet (zero-based)

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public int GetFirstRowNumber()

Return Value

Int32
Zero-based row number. In case of an empty worksheet, -1 will be returned
Remarks
GetFirstRowNumber() will not return the first row with data in any case. If there is a formatted but empty cell (or many) before the first cell with data, GetFirstRowNumber() will return the row number of this empty cell. Use GetFirstDataRowNumber in this case.
See Also