SpreadsheetGear 2023
Rows Property (IRange)

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

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


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