Click or drag to resize
NanoXLSX

WorksheetGetFirstColumnNumber Method

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

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntax
C#
public int GetFirstColumnNumber()

Return Value

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