NativeExcel2 for .Net Developer's Reference

IWorksheet.StandardHeight Property

Gets or sets the standard (default) height of all the rows in the worksheet, in points.

[Visual Basic]
PropertyStandardHeightAsDouble
[C#]
doubleStandardHeight{get;set;}
[C++]
__propertydoubleget_StandardHeight();
__propertyvoidset_StandardHeight(double);
[JScript]
functiongetStandardHeight():double
functionsetStandardHeight(double);

Property Value

Double. Standard (default) height of all the rows in the worksheet, in points.

Example

This example sets the height of row one on Sheet1 to the standard height.

[C#]
book.Worksheets[1].Cells.Rows[1].RowHeight = book.Worksheets[1].StandardHeight;
[VisualBasic]
book.Worksheets(1).Cells.Rows(1).RowHeight = book.Worksheets[1].StandardHeight
[C++]
book->Worksheets->Item[1]->Cells->Rows->Item[1]->RowHeight = book->Worksheets->Item[1]->StandardHeight;

See Also

IWorksheet Interface | NativeExcel Namespace | StandardWidth Property