# C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun*">DrawGlyphRun Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawGlyphRun_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun(System.Object,System.Single,System.Single,C1.Util.DX.DirectWrite.MeasuringMode,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.GlyphRunDescription,System.IntPtr)">DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)</h4>
<div class="markdown level1 summary"><p>IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override HResult DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, IntPtr clientDrawingEffectPtr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function DrawGlyphRun(clientDrawingContext As Object, baselineOriginX As Single, baselineOriginY As Single, measuringMode As MeasuringMode, glyphRun As GlyphRun, glyphRunDescription As GlyphRunDescription, clientDrawingEffectPtr As IntPtr) As HResult</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">clientDrawingContext</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginX</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginY</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>
    <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.GlyphRunDescription.html">GlyphRunDescription</a></td>
      <td><span class="parametername">glyphRunDescription</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">clientDrawingEffectPtr</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.HResult.html">HResult</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Util.DX.DirectWrite.TextRendererBase.DrawGlyphRun.html#C1_Util_DX_DirectWrite_TextRendererBase_DrawGlyphRun_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_IntPtr_">TextRendererBase.DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)</a></div>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.DX.DirectWrite.TextRenderer.DrawGlyphRun.html#C1_Util_DX_DirectWrite_TextRenderer_DrawGlyphRun_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_IntPtr_">TextRenderer.DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)</a></div>


<a id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextRenderer1Base_DrawGlyphRun_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_GlyphOrientationAngle_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextRenderer1Base.DrawGlyphRun(System.Object,System.Single,System.Single,C1.Util.DX.DirectWrite.GlyphOrientationAngle,C1.Util.DX.DirectWrite.MeasuringMode,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.GlyphRunDescription,System.IntPtr)">DrawGlyphRun(object, float, float, GlyphOrientationAngle, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)</h4>
<div class="markdown level1 summary"><p>IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual HResult DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, IntPtr clientDrawingEffectPtr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function DrawGlyphRun(clientDrawingContext As Object, baselineOriginX As Single, baselineOriginY As Single, orientationAngle As GlyphOrientationAngle, measuringMode As MeasuringMode, glyphRun As GlyphRun, glyphRunDescription As GlyphRunDescription, clientDrawingEffectPtr As IntPtr) As HResult</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">clientDrawingContext</span></td>
      <td><p>The application-defined drawing context passed to <a class="xref" href="C1.Util.DX.DirectWrite.TextLayout.Draw.html#C1_Util_DX_DirectWrite_TextLayout_Draw_System_Object_C1_Util_DX_DirectWrite_TextRenderer_System_Single_System_Single_">Draw(object, TextRenderer, float, float)</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">baselineOriginX</span></td>
      <td><p>The pixel location (X-coordinate) at the baseline origin of the glyph run.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginY</span></td>
      <td><p>The pixel location (Y-coordinate) at the baseline origin of the glyph run.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphOrientationAngle.html">GlyphOrientationAngle</a></td>
      <td><span class="parametername">orientationAngle</span></td>
      <td><p>Orientation of the glyph run.</p>
</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><p>The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.</p>
</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><p>Pointer to the glyph run instance to render.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRunDescription.html">GlyphRunDescription</a></td>
      <td><span class="parametername">glyphRunDescription</span></td>
      <td><p>A pointer to the optional glyph run description instance which contains properties of the characters  associated with this run.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">clientDrawingEffectPtr</span></td>
      <td><p>Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of text.</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="C1.Util.DX.HResult.html">HResult</a></td>
      <td><p>If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.DX.DirectWrite.TextRenderer1.DrawGlyphRun.html#C1_Util_DX_DirectWrite_TextRenderer1_DrawGlyphRun_System_Object_System_Single_System_Single_C1_Util_DX_DirectWrite_GlyphOrientationAngle_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_IntPtr_">TextRenderer1.DrawGlyphRun(object, float, float, GlyphOrientationAngle, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)</a></div>
</div>
