# GrapeCity.Documents.Layout.SizeConstraint

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_SizeConstraint" data-uid="GrapeCity.Documents.Layout.SizeConstraint" class="text-break">SizeConstraint Class
</h1>
  <div class="markdown level0 summary"><p>Restricts the width or height of the target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a></div>
    <div class="level2"><span class="xref">SizeConstraint</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Layout.html">GrapeCity.Documents.Layout</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Layout_SizeConstraint_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SizeConstraint : Constraint</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SizeConstraint
    Inherits Constraint</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Layout_SizeConstraint_AnchorPoint1" data-uid="GrapeCity.Documents.Layout.SizeConstraint.AnchorPoint1">
          <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.AnchorPoint1.html#GrapeCity_Documents_Layout_SizeConstraint_AnchorPoint1">AnchorPoint1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first anchor point for measuring the source distance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_SizeConstraint_AnchorPoint2" data-uid="GrapeCity.Documents.Layout.SizeConstraint.AnchorPoint2">
          <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.AnchorPoint2.html#GrapeCity_Documents_Layout_SizeConstraint_AnchorPoint2">AnchorPoint2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the second anchor point for measuring the source distance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_SizeConstraint_Multiplier" data-uid="GrapeCity.Documents.Layout.SizeConstraint.Multiplier">
          <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.Multiplier.html#GrapeCity_Documents_Layout_SizeConstraint_Multiplier">Multiplier</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the multiplier to the value of the source distance.</p>
<p>The multiplier must be positive or zero. It is applied before adding the <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.Value.html#GrapeCity_Documents_Layout_SizeConstraint_Value">Value</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_SizeConstraint_Value" data-uid="GrapeCity.Documents.Layout.SizeConstraint.Value">
          <a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.Value.html#GrapeCity_Documents_Layout_SizeConstraint_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the absolute or relative width or height of the target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
<p>The absolute width or height must be positive or zero.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
