Gets or sets the width of the shape in points (1/72 inch).
[Visual Basic] Property Width As Double [C#] double Width { get; set; } [C++] __property double get_Width(); __property void set_Width(double ); [JScript] function get Width() : double function set Width(double);
double. The width of the specified shape measured in points (1/72 inch).
This example sets the width of the comment for cell E5.
[C#]
IRange cell = book.Worksheets[1].Range["E5"];
cell.AddComment().Shape.Width = 100;
[Visual Basic]
Dim cell As IRange
cell = book.Worksheets(1).Range("E5")
cell.AddComment().Shape.Width = 100
[C++]
IRange* cell;
cell = book->Worksheets->Item[1]->Range->Item[S"E5"];
cell->AddComment()->Shape->Width = 100;
IShape Interface | NativeExcel Namespace | IShape.Height Property