# GrapeCity.Documents.Layout.PositionConstraint

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_PositionConstraint" data-uid="GrapeCity.Documents.Layout.PositionConstraint" class="text-break">PositionConstraint Class
</h1>
  <div class="markdown level0 summary"><p>Determines the position of sides or centers 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">PositionConstraint</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_PositionConstraint_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PositionConstraint : Constraint</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PositionConstraint
    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_PositionConstraint_AnchorPoint" data-uid="GrapeCity.Documents.Layout.PositionConstraint.AnchorPoint">
          <a class="xref" href="GrapeCity.Documents.Layout.PositionConstraint.AnchorPoint.html#GrapeCity_Documents_Layout_PositionConstraint_AnchorPoint">AnchorPoint</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Layout.AnchorPoint.html">AnchorPoint</a> used as the origin position for the constraint.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_PositionConstraint_Offset" data-uid="GrapeCity.Documents.Layout.PositionConstraint.Offset">
          <a class="xref" href="GrapeCity.Documents.Layout.PositionConstraint.Offset.html#GrapeCity_Documents_Layout_PositionConstraint_Offset">Offset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the relative position of sides or centers of the target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
<p>Returns float.NaN for a chained slave constraint.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_PositionConstraint_Opposite" data-uid="GrapeCity.Documents.Layout.PositionConstraint.Opposite">
          <a class="xref" href="GrapeCity.Documents.Layout.PositionConstraint.Opposite.html#GrapeCity_Documents_Layout_PositionConstraint_Opposite">Opposite</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the opposite constraint that makes a chained pair, or null for unchained constraints.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
