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