Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Gets the number of cells in the Range.
Namespace: Bytescout.Spreadsheet
Assembly: Bytescout.Spreadsheet (in Bytescout.Spreadsheet.dll) Version: 4.7.1.2054-master
Syntax
Property Value
Type: Int32The number of cells in the Range.
Examples
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