NativeExcel2 for .Net Developer's Reference

IShape.Height Property

Gets or sets the height of the shape in points (1/72 inch).

[Visual Basic]
PropertyHeightAsDouble
[C#]
doubleHeight{get;set;}
[C++]
__propertydoubleget_Height();
__propertyvoidset_Height(double);
[JScript]
functiongetHeight():double
functionsetHeight(double);

Property Value

double. The height of the specified shape measured in points (1/72 inch).

Example

This example sets the height of the comment for cell E5.

[C#]
   IRange cell = book.Worksheets[1].Range["E5"]; 
   cell.AddComment().Shape.Height = 70;  
[VisualBasic]
   Dim cell As IRange
   cell = book.Worksheets(1).Range("E5") 
   cell.AddComment().Shape.Height = 70
[C++]
   IRange* cell;
   cell = book->Worksheets->Item[1]->Range->Item[S"E5"];
   cell->AddComment()->Shape->Height = 70;

See Also

IShape Interface | NativeExcel Namespace | IShape.Width Property