SpreadsheetGear 2023
Rows Property (IRange)
Example 


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.
Syntax
'Declaration
 
ReadOnly Property Rows As IRange
'Usage
 
Dim instance As IRange
Dim value As IRange
 
value = instance.Rows
IRange Rows {get;}
Remarks
If the IRange represents more than one range of cells, only the first range of cells is represented in the new IRange.
Example
int numberOfRows = worksheet.Cells["A1:B3"].Rows.Count; // 3 rows
Dim numberOfRows As Integer = worksheet.Cells("A1:B3").Rows.Count ' 3 rows
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IRange Interface
IRange Members
AutoFit Method
Columns Property
Count Property
RowCount Property
ColumnCount Property
CellCount Property