# FarPoint.Win.ControlBase.SetBoundingRectangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_ControlBase_SetBoundingRectangle_" data-uid="FarPoint.Win.ControlBase.SetBoundingRectangle*">SetBoundingRectangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_ControlBase_SetBoundingRectangle_" data-uid="FarPoint.Win.ControlBase.SetBoundingRectangle*"></a>
<h4 id="FarPoint_Win_ControlBase_SetBoundingRectangle_System_Drawing_Rectangle_FarPoint_Win_Inset_FarPoint_Win_Inset_" data-uid="FarPoint.Win.ControlBase.SetBoundingRectangle(System.Drawing.Rectangle,FarPoint.Win.Inset,FarPoint.Win.Inset)">SetBoundingRectangle(Rectangle, Inset, Inset)</h4>
<div class="markdown level1 summary"><p>Sets the bounds for the client rectangle for the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void SetBoundingRectangle(Rectangle ctlRectangle, Inset border, Inset margin)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub SetBoundingRectangle(ctlRectangle As Rectangle, border As Inset, margin As Inset)</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="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">ctlRectangle</span></td>
      <td><p>Client Rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Inset.html">Inset</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>Border inset</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Inset.html">Inset</a></td>
      <td><span class="parametername">margin</span></td>
      <td><p>Margin inset</p>
</td>
    </tr>
  </tbody>
</table>
</div>
