# C1.Win.Layout.ILayout.SetBounds

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Layout_ILayout_SetBounds_" data-uid="C1.Win.Layout.ILayout.SetBounds*">SetBounds Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Layout_ILayout_SetBounds_" data-uid="C1.Win.Layout.ILayout.SetBounds*"></a>
<h4 id="C1_Win_Layout_ILayout_SetBounds_System_Object_System_Drawing_Rectangle_C1_Win_Layout_DragType_" data-uid="C1.Win.Layout.ILayout.SetBounds(System.Object,System.Drawing.Rectangle,C1.Win.Layout.DragType)">SetBounds(object, Rectangle, DragType)</h4>
<div class="markdown level1 summary"><p>Sets bounds for the ItemContainer instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool SetBounds(object itemContainer, Rectangle bounds, DragType dragType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function SetBounds(itemContainer As Object, bounds As Rectangle, dragType As DragType) 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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">itemContainer</span></td>
      <td><p>ItemContainer for setting bounds (resizing/moving).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> bounds for the ItemContainer.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Layout.DragType.html">DragType</a></td>
      <td><span class="parametername">dragType</span></td>
      <td><p>Current <a class="xref" href="C1.Win.Layout.DragType.html">DragType</a> that initiated resizing/moving.</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></td>
    </tr>
  </tbody>
</table>
</div>
