# GrapeCity.Documents.Layout.Constraint

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_Constraint" data-uid="GrapeCity.Documents.Layout.Constraint" class="text-break">Constraint Class
</h1>
  <div class="markdown level0 summary"><p>The base class for <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> constraints.</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"><span class="xref">Constraint</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.AngleConstraint.html">AngleConstraint</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.AspectRatioConstraint.html">AspectRatioConstraint</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.ContourConstraint.html">ContourConstraint</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.PositionConstraint.html">PositionConstraint</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.SizeConstraint.html">SizeConstraint</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.StarSizeConstraint.html">StarSizeConstraint</a></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_Constraint_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Constraint</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class 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_Constraint_AnchorParam" data-uid="GrapeCity.Documents.Layout.Constraint.AnchorParam">
          <a class="xref" href="GrapeCity.Documents.Layout.Constraint.AnchorParam.html#GrapeCity_Documents_Layout_Constraint_AnchorParam">AnchorParam</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the source parameter of the anchor <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Constraint_AnchorRect" data-uid="GrapeCity.Documents.Layout.Constraint.AnchorRect">
          <a class="xref" href="GrapeCity.Documents.Layout.Constraint.AnchorRect.html#GrapeCity_Documents_Layout_Constraint_AnchorRect">AnchorRect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the referenced (anchor) <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> if the owner <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> is referenced.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Constraint_TargetParam" data-uid="GrapeCity.Documents.Layout.Constraint.TargetParam">
          <a class="xref" href="GrapeCity.Documents.Layout.Constraint.TargetParam.html#GrapeCity_Documents_Layout_Constraint_TargetParam">TargetParam</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the target parameter of the target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Constraint_TargetRect" data-uid="GrapeCity.Documents.Layout.Constraint.TargetRect">
          <a class="xref" href="GrapeCity.Documents.Layout.Constraint.TargetRect.html#GrapeCity_Documents_Layout_Constraint_TargetRect">TargetRect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> for the constraint.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
