Version

DefaultRowHeight Property

Gets or sets the default row height in twips (1/20th of a point).
Syntax
'Declaration
 
Public Property DefaultRowHeight As Integer
public int DefaultRowHeight {get; set;}

Property Value

The default row height in twips (1/20th of a point).
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The value assigned is outside the value range of -1 and 8192.
Remarks

The default row height is the height of all rows which do not have their height explicitly set to a positive number.

If the assigned value is -1, the default row height will then be calculated based on the default font for the workbook, and subsequently getting this property will return the font-based default row height.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also