PicoXLSX Library Documentation
![]() | WorksheetGetLastColumnNumber Method |
Gets the last existing column number in the current worksheet (zero-based)
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
public int GetLastColumnNumber()
Return Value
Type: Int32Zero-based column number. In case of a empty worksheet, -1 will be returned
