Link Search Menu Expand Document

RangeCount Property

Gets the number of cells in the Range.

Namespace:Bytescout.Spreadsheet
Assembly: Bytescout.Spreadsheet (in Bytescout.Spreadsheet.dll) Version: 4.7.0.2045-master
Syntax
public int Count { get; }

Property Value

Type: Int32
The number of cells in the Range.
Examples
This samples demonstrate the features of the Count property
int CellCount = worksheet.Range("A1:B3").Count; // 6 cells
int RowCount1 = worksheet.Range("A1:B3").Rows.Count; // 3 rows
int RowCount2 = worksheet.Range("1:3").Count; // 3 rows
int ColumnCount1 = worksheet.Range("A1:B3").Columns.Count; // 2 columns
int ColumnCount2 = worksheet.Range("A:B").Count; // 2 columns
See Also

Reference