Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns the default row height in points (1/72 of an inch). This must be between 0 and 409.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public double StandardHeight{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
<p>Public Property StandardHeight() As Double</p>
Example
Code Block
csharp
csharp
titleC#

          //--- Get StandardHeight
          ws.StandardHeight = 35;

          //--- Set StandardHeight
          double rowHeight = ws.StandardHeight;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Get StandardHeight
          ws.StandardHeight = 35

          '--- Set StandardHeight
          Dim rowHeight As Double = ws.StandardHeight
        
Remarks

The default value of this property in Excel 2003 and earlier is 12.75. In Excel 2007 and later, it is 15.

In general, the default StandardHeight depends on the workbook's normal font. If your workbook has a non-default font, the default StandardHeight will be slightly larger than the size of that font. The default font in Excel 2003 and earlier is 10pt Arial; in Excel 2007 and later it is 11pt Calibri.