NativeExcel2 for .Net Developer's Reference

IRange.RowHeight Property

Gets or sets the height of rows in the specified range.

[Visual Basic]
PropertyRowHeightAsDouble
[C#]
doubleRowHeight{get;set;}
[C++]
__propertydoubleget_RowHeight();
__propertyvoidset_RowHeight(double);
[JScript]
functiongetRowHeight():double
functionsetRowHeight(double);

Property Value

The height of rows in the specified range, measured in points.

Example

This example doubles the height of row one on sheet one.

[C#]
 IRange range = book.Worksheets[1].Range["A1"];
 range.RowHeight *= 2;
[VisualBasic]
 Dim range As IRange = book.Worksheets(1).Range("A1")
 range.RowHeight = range.RowHeight * 2
[C++]
 IRange* range = book->Worksheets->Item[1]->Range->Item[S"A1"];
 range->RowHeight *= 2;

See Also

IRange Interface | NativeExcel Namespace | ColumnWidth Property | Height Property