NativeExcel for .Net Developer's Reference

IRange.Height Property

Returns the height of the specified range.

[Visual Basic]
Property ReadOnly Height As Double
[C#]
double Height { get; }
[C++]
__property double get_Height();
[JScript]
function get Height() : 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;  
[Visual Basic]
 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