SpreadsheetGear Namespace > IRange Interface : Rows Property |
Returns a new instance of IRange which represents the same range of cells but which may be used to determine the number of rows in the range or to AutoFit the rows in the range.
[Visual Basic]
Overridable ReadOnly Property Rows As IRange
[C#]
virtual IRange Rows {get;}
[C++]
__property virtual IRange* get_Rows();
If the IRange represents more than one range of cells, only the first range of cells is represented in the new IRange.
[C#]
int numberOfRows = worksheet.Cells["A1:B3"].Rows.Count; // 3 rows
[Visual Basic]
Dim numberOfRows As Integer = worksheet.Cells("A1:B3").Rows.Count ' 3 rows
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IRange Interface | IRange Members | AutoFit Method | Columns Property | Count Property | RowCount Property | ColumnCount Property
See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.
Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.
SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.