NativeExcel for .Net Developer's Reference

IShape.Height Property

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

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