RangeCount Property
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Gets the number of cells in the Range.
Namespace:Bytescout.SpreadsheetAssembly: Bytescout.Spreadsheet (in Bytescout.Spreadsheet.dll) Version: 4.7.0.2045-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