# GrapeCity.Documents.Layout.LayoutRect.SetHeight

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight*">SetHeight Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight(System.Single)">SetHeight(float)</h4>
<div class="markdown level1 summary"><p>Adds a Height constraint.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SizeConstraint SetHeight(float height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SetHeight(height As Single) As SizeConstraint</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.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The proposed height.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a></td>
      <td><p>New constraint just added.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_GrapeCity_Documents_Layout_LayoutRect_GrapeCity_Documents_Layout_AnchorParam_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight(GrapeCity.Documents.Layout.LayoutRect,GrapeCity.Documents.Layout.AnchorParam,System.Single,System.Single)">SetHeight(LayoutRect, AnchorParam, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a Height constraint relative to <code class="paramref">anchorRect</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SizeConstraint SetHeight(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SetHeight(anchorRect As LayoutRect, anchorParam As AnchorParam, Optional delta As Single = 0, Optional multiplier As Single = 1) As SizeConstraint</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="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a></td>
      <td><span class="parametername">anchorRect</span></td>
      <td><p>The referenced <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> to reference the owner <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.AnchorParam.html">AnchorParam</a></td>
      <td><span class="parametername">anchorParam</span></td>
      <td><p>The source parameter of the <code class="paramref">anchorRect</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">delta</span></td>
      <td><p>An increment to the value of the source (anchor) parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">multiplier</span></td>
      <td><p>A multiplier to the value of the source parameter; applied before adding the <code class="paramref">delta</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a></td>
      <td><p>New constraint just added.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_SetHeight_GrapeCity_Documents_Layout_AnchorPoint_GrapeCity_Documents_Layout_AnchorPoint_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.SetHeight(GrapeCity.Documents.Layout.AnchorPoint,GrapeCity.Documents.Layout.AnchorPoint,System.Single,System.Single)">SetHeight(AnchorPoint, AnchorPoint, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a Height constraint relative to the distance between <code class="paramref">anchorPoint1</code> and <code class="paramref">anchorPoint2</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SizeConstraint SetHeight(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SetHeight(anchorPoint1 As AnchorPoint, anchorPoint2 As AnchorPoint, Optional delta As Single = 0, Optional multiplier As Single = 1) As SizeConstraint</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="GrapeCity.Documents.Layout.AnchorPoint.html">AnchorPoint</a></td>
      <td><span class="parametername">anchorPoint1</span></td>
      <td><p>The first referenced <a class="xref" href="GrapeCity.Documents.Layout.AnchorPoint.html">AnchorPoint</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.AnchorPoint.html">AnchorPoint</a></td>
      <td><span class="parametername">anchorPoint2</span></td>
      <td><p>The second referenced <a class="xref" href="GrapeCity.Documents.Layout.AnchorPoint.html">AnchorPoint</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">delta</span></td>
      <td><p>An increment to the value of the source distance.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">multiplier</span></td>
      <td><p>A multiplier to the value of the source distance; applied before adding the <code class="paramref">delta</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a></td>
      <td><p>New constraint just added.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
