 | WorksheetGetFirstRowNumber Method |
Gets the first existing row number in the current worksheet (zero-based)
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntaxpublic int GetFirstRowNumber()
Return Value
Int32Zero-based row number. In case of an empty worksheet, -1 will be returned
RemarksGetFirstRowNumber() 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