NativeExcel2 for .Net Developer's Reference

IRange.Rows Property

Returns an IRangeRows interface that represents the rows in the specified range.

[Visual Basic]
PropertyReadOnlyRowsAsIRangeRows
[C#]
IRangeRowsRows{get;}
[C++]
__propertyIRangeRows*get_Rows();
[JScript]
functiongetRows():IRangeRows

Property Value

IRangeRows interface.

Example

This example sets the font style in the second row of range A1:F10 to bold.

[C#]
IRange range = book.Worksheets[1].Range["A1:F10"];
range.Rows[2].Font.Bold = true;
[VisualBasic]
Dim range As IRange
range = book.Worksheets(1).Range("A1:F10")
range.Rows(2).Font.Bold = True
[C++]
IRange* range;
range = book->Worksheets->Item[1]->Range->Item[S"A1:F10"];
range->Rows->Item[2]->Font->Bold = true;

See Also

IRange Interface | NativeExcel Namespace | IRangeRows Interface