# GrapeCity.Documents.Layout.Contour.GetBounds

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_Contour_GetBounds_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds*">GetBounds Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_Contour_GetBounds_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds*"></a>
<h4 id="GrapeCity_Documents_Layout_Contour_GetBounds_GrapeCity_Documents_Layout_LayoutView_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds(GrapeCity.Documents.Layout.LayoutView)">GetBounds(LayoutView)</h4>
<div class="markdown level1 summary"><p>Gets the minimal <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> that contains all points of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to the specified <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangleF GetBounds(LayoutView targetView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetBounds(targetView As LayoutView) As RectangleF</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.LayoutView.html">LayoutView</a></td>
      <td><span class="parametername">targetView</span></td>
      <td><p>The destination <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> to reference the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>.</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.drawing.rectanglef">RectangleF</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_Contour_GetBounds_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds*"></a>
<h4 id="GrapeCity_Documents_Layout_Contour_GetBounds_GrapeCity_Documents_Layout_LayoutView_System_Single__System_Single__System_Single__System_Single__" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds(GrapeCity.Documents.Layout.LayoutView,System.Single@,System.Single@,System.Single@,System.Single@)">GetBounds(LayoutView, out float, out float, out float, out float)</h4>
<div class="markdown level1 summary"><p>Gets the minimum and maximum positions of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to the specified <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetBounds(LayoutView targetView, out float minX, out float maxX, out float minY, out float maxY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetBounds(targetView As LayoutView, ByRef minX As Single, ByRef maxX As Single, ByRef minY As Single, ByRef maxY As Single)</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.LayoutView.html">LayoutView</a></td>
      <td><span class="parametername">targetView</span></td>
      <td><p>The destination <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> to reference the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">minX</span></td>
      <td><p>The minimum X coordinate of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> in the target view's coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">maxX</span></td>
      <td><p>The maximum X coordinate of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> in the target view's coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">minY</span></td>
      <td><p>The minimum Y coordinate of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> in the target view's coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">maxY</span></td>
      <td><p>The maximum Y coordinate of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> in the target view's coordinates.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_Contour_GetBounds_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds*"></a>
<h4 id="GrapeCity_Documents_Layout_Contour_GetBounds_GrapeCity_Documents_Layout_LayoutRect_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds(GrapeCity.Documents.Layout.LayoutRect)">GetBounds(LayoutRect)</h4>
<div class="markdown level1 summary"><p>Gets the minimal <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> that contains all points of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to the specified <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 RectangleF GetBounds(LayoutRect targetRect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetBounds(targetRect As LayoutRect) As RectangleF</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.LayoutRect.html">LayoutRect</a></td>
      <td><span class="parametername">targetRect</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</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.drawing.rectanglef">RectangleF</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Layout_Contour_GetBounds_" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds*"></a>
<h4 id="GrapeCity_Documents_Layout_Contour_GetBounds_GrapeCity_Documents_Layout_LayoutRect_System_Single__System_Single__System_Single__System_Single__" data-uid="GrapeCity.Documents.Layout.Contour.GetBounds(GrapeCity.Documents.Layout.LayoutRect,System.Single@,System.Single@,System.Single@,System.Single@)">GetBounds(LayoutRect, out float, out float, out float, out float)</h4>
<div class="markdown level1 summary"><p>Gets the minimum and maximum positions of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to the specified <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 void GetBounds(LayoutRect targetRect, out float minX, out float maxX, out float minY, out float maxY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetBounds(targetRect As LayoutRect, ByRef minX As Single, ByRef maxX As Single, ByRef minY As Single, ByRef maxY As Single)</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.LayoutRect.html">LayoutRect</a></td>
      <td><span class="parametername">targetRect</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">minX</span></td>
      <td><p>The minimum X offset of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to <code class="paramref">targetRect</code>'s left side.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">maxX</span></td>
      <td><p>The maximum X offset of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to <code class="paramref">targetRect</code>'s left side.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">minY</span></td>
      <td><p>The minimum Y offset of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to <code class="paramref">targetRect</code>'s top side.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">maxY</span></td>
      <td><p>The maximum Y offset of the <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> relative to <code class="paramref">targetRect</code>'s top side.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
