Worksheet.GetLastAddress Method

NanoXLSX

NanoXLSX

WorksheetGetLastAddress Method

Gets the last existing row or column number of the current worksheet (zero-based)

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
private int GetLastAddress(
	bool column
)

Parameters

column
Type: SystemBoolean
If true, the output will be the last column, otherwise the last row

Return Value

Type: Int32
Last row or column number (zero-based)
See Also