# GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_LayoutRect_RemoveConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint*">RemoveConstraint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_LayoutRect_RemoveConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_RemoveConstraint_GrapeCity_Documents_Layout_Constraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint(GrapeCity.Documents.Layout.Constraint)">RemoveConstraint(Constraint)</h4>
<div class="markdown level1 summary"><p>Detaches the specified <a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a> from the <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RemoveConstraint(Constraint constraint)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RemoveConstraint(constraint As Constraint) As Boolean</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.Constraint.html">Constraint</a></td>
      <td><span class="parametername">constraint</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a> to be detached.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if the <a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a> is successfully detached.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_LayoutRect_RemoveConstraint_" data-uid="GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutRect_RemoveConstraint_GrapeCity_Documents_Layout_TargetParam_" data-uid="GrapeCity.Documents.Layout.LayoutRect.RemoveConstraint(GrapeCity.Documents.Layout.TargetParam)">RemoveConstraint(TargetParam)</h4>
<div class="markdown level1 summary"><p>Detaches the first constraint for the specified target parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RemoveConstraint(TargetParam targetParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RemoveConstraint(targetParam As TargetParam) As Boolean</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 <a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a> to search for.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if the <a class="xref" href="GrapeCity.Documents.Layout.Constraint.html">Constraint</a> is found and successfully detached.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
