# GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleHeight

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_ScaleHeight_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleHeight*">ScaleHeight Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeBase_ScaleHeight_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleHeight*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_ScaleHeight_System_Double_System_Boolean_GrapeCity_Spreadsheet_Drawing_ScaleFrom_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleHeight(System.Double,System.Boolean,GrapeCity.Spreadsheet.Drawing.ScaleFrom)">ScaleHeight(double, bool, ScaleFrom)</h4>
<div class="markdown level1 summary"><p>Scales the height of the shape by a specified factor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ScaleHeight(double factor, bool relativeToOriginalSize, ScaleFrom scale = ScaleFrom.TopLeft)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ScaleHeight(factor As Double, relativeToOriginalSize As Boolean, Optional scale As ScaleFrom = ScaleFrom.TopLeft)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">factor</span></td>
      <td><p>Specifies the ratio between the height of the shape after you resize it and the current or original height.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">relativeToOriginalSize</span></td>
      <td><p><code>false</code> to scale it relative to its current size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.ScaleFrom.html">ScaleFrom</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>One of the constants of <a class="xref" href="GrapeCity.Spreadsheet.Drawing.ScaleFrom.html">ScaleFrom</a> which specifies which part of the shape retains its position when the shape is scaled.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_ScaleHeight_System_Double_System_Boolean_GrapeCity_Spreadsheet_Drawing_ScaleFrom__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Shapes other than pictures and OLE objects are always scaled relative to their current height.</p>
</div>
</div>
