NativeExcel for .Net Developer's Reference

IRange.Height Property

Returns the height of the specified range.

[Visual Basic]
PropertyReadOnlyHeightAsDouble
[C#]
doubleHeight{get;}
[C++]
__propertydoubleget_Height();
[JScript]
functiongetHeight():double

Property Value

The height of the specified range measured in points.

Example

This example gets the height of selected range.

[C#]
 double height;
 height = book.Worksheets[1].Selection.Height;  
[VisualBasic]
 Dim height As Double 
 height = book.Worksheets(1).Selection.Height  
[C++]
 double height;
 height = book->Worksheets->Item[1]->Selection->Height;  

See Also

IRange Interface | NativeExcel Namespace | RowHeight Property | Width Property