Click or drag to resize
ExcelRowColumnCellCollectionBaseCount Property
Gets the number of currently allocated elements (dynamically changes when worksheet is modified -- read remarks).

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1033
Syntax
public abstract int Count { get; }

Property Value

Type: Int32
Remarks
The cells are internally allocated in rows and not in columns. In other words, when you load CSV/XLS/XLSX or access some cells via worksheet.Cells property new rows and cells can be allocated but the column count will stay the same. To find last used column in the worksheet, use ExcelWorksheet.GetUsedCellRange method.
See Also