Click or drag to resize
NanoXLSX

WorksheetGetFirstDataColumnNumber Method

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

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

Return Value

Int32
Zero-based column number. In case of an empty worksheet, -1 will be returned
Remarks
GetFirstDataColumnNumber() will ignore formatted but empty cells before the first column with data. If you want the first defined column, use GetFirstColumnNumber instead.
See Also