# C1.Util.DX.Direct2D.DeviceContext.GetGlyphRunWorldBounds

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_DeviceContext_GetGlyphRunWorldBounds_" data-uid="C1.Util.DX.Direct2D.DeviceContext.GetGlyphRunWorldBounds*">GetGlyphRunWorldBounds Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_DeviceContext_GetGlyphRunWorldBounds_" data-uid="C1.Util.DX.Direct2D.DeviceContext.GetGlyphRunWorldBounds*"></a>
<h4 id="C1_Util_DX_Direct2D_DeviceContext_GetGlyphRunWorldBounds_C1_Util_DX_Point2F_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_MeasuringMode_" data-uid="C1.Util.DX.Direct2D.DeviceContext.GetGlyphRunWorldBounds(C1.Util.DX.Point2F,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.MeasuringMode)">GetGlyphRunWorldBounds(Point2F, GlyphRun, MeasuringMode)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1DeviceContext::GetGlyphRunWorldBounds([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] DWRITE_MEASURING_MODE measuringMode,[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 GetGlyphRunWorldBounds(Point2F baselineOrigin, GlyphRun glyphRun, MeasuringMode measuringMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetGlyphRunWorldBounds(baselineOrigin As Point2F, glyphRun As GlyphRun, measuringMode As MeasuringMode) 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.Point2F.html">Point2F</a></td>
      <td><span class="parametername">baselineOrigin</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRun.html">GlyphRun</a></td>
      <td><span class="parametername">glyphRun</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.MeasuringMode.html">MeasuringMode</a></td>
      <td><span class="parametername">measuringMode</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>
