# GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_LayoutRect_AppendSizeConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint*">AppendSizeConstraint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_LayoutRect_AppendSizeConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_AppendSizeConstraint_GrapeCity_Documents_Layout_TargetParam_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint(GrapeCity.Documents.Layout.TargetParam,System.Single)">AppendSizeConstraint(TargetParam, float)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SizeConstraint AppendSizeConstraint(TargetParam targetParam, float size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AppendSizeConstraint(targetParam As TargetParam, size 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="GrapeCity.Documents.Layout.TargetParam.html">TargetParam</a></td>
      <td><span class="parametername">targetParam</span></td>
      <td><p>The target parameter of the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</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">size</span></td>
      <td><p>The proposed value of the width or 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_AppendSizeConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_AppendSizeConstraint_GrapeCity_Documents_Layout_TargetParam_GrapeCity_Documents_Layout_LayoutRect_GrapeCity_Documents_Layout_AnchorParam_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint(GrapeCity.Documents.Layout.TargetParam,GrapeCity.Documents.Layout.LayoutRect,GrapeCity.Documents.Layout.AnchorParam,System.Single,System.Single)">AppendSizeConstraint(TargetParam, LayoutRect, AnchorParam, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a> 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 AppendSizeConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AppendSizeConstraint(targetParam As TargetParam, 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.TargetParam.html">TargetParam</a></td>
      <td><span class="parametername">targetParam</span></td>
      <td><p>The target parameter of the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</td>
    </tr>
    <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_AppendSizeConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_AppendSizeConstraint_GrapeCity_Documents_Layout_TargetParam_GrapeCity_Documents_Layout_AnchorPoint_GrapeCity_Documents_Layout_AnchorPoint_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutRect.AppendSizeConstraint(GrapeCity.Documents.Layout.TargetParam,GrapeCity.Documents.Layout.AnchorPoint,GrapeCity.Documents.Layout.AnchorPoint,System.Single,System.Single)">AppendSizeConstraint(TargetParam, AnchorPoint, AnchorPoint, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a> 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 AppendSizeConstraint(TargetParam targetParam, AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AppendSizeConstraint(targetParam As TargetParam, 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.TargetParam.html">TargetParam</a></td>
      <td><span class="parametername">targetParam</span></td>
      <td><p>The target parameter of the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</td>
    </tr>
    <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>
