# C1.Util.DX.Direct2D.Geometry.GetBounds

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Geometry_GetBounds_" data-uid="C1.Util.DX.Direct2D.Geometry.GetBounds*">GetBounds Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Geometry_GetBounds_" data-uid="C1.Util.DX.Direct2D.Geometry.GetBounds*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_GetBounds" data-uid="C1.Util.DX.Direct2D.Geometry.GetBounds">GetBounds()</h4>
<div class="markdown level1 summary"><p>Retrieves the bounds of the geometry.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectF GetBounds()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetBounds() As RectF</code></pre>
</div>
<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="C1.Util.DX.RectF.html">RectF</a></td>
      <td><p>When this method returns, contains the bounds of this geometry. If the bounds are empty, this will be a rect where bounds.left &gt; bounds.right. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_GetBounds_" data-uid="C1.Util.DX.Direct2D.Geometry.GetBounds*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_GetBounds_System_Nullable_C1_Util_DX_Matrix3x2__" data-uid="C1.Util.DX.Direct2D.Geometry.GetBounds(System.Nullable{C1.Util.DX.Matrix3x2})">GetBounds(Matrix3x2?)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Geometry::GetBounds([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[Out] D2D_RECT_F* bounds)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectF GetBounds(Matrix3x2? worldTransform)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetBounds(worldTransform As Matrix3x2?) As RectF</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="C1.Util.DX.Matrix3x2.html">Matrix3x2</a>?</td>
      <td><span class="parametername">worldTransform</span></td>
      <td></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="C1.Util.DX.RectF.html">RectF</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
