# C1.Util.DX.DirectWrite.Factory2.TranslateColorGlyphRun

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_Factory2_TranslateColorGlyphRun_" data-uid="C1.Util.DX.DirectWrite.Factory2.TranslateColorGlyphRun*">TranslateColorGlyphRun Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_Factory2_TranslateColorGlyphRun_" data-uid="C1.Util.DX.DirectWrite.Factory2.TranslateColorGlyphRun*"></a>
<h4 id="C1_Util_DX_DirectWrite_Factory2_TranslateColorGlyphRun_System_Single_System_Single_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_C1_Util_DX_DirectWrite_MeasuringMode_System_Nullable_C1_Util_DX_Matrix3x2__System_Int32_" data-uid="C1.Util.DX.DirectWrite.Factory2.TranslateColorGlyphRun(System.Single,System.Single,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.GlyphRunDescription,C1.Util.DX.DirectWrite.MeasuringMode,System.Nullable{C1.Util.DX.Matrix3x2},System.Int32)">TranslateColorGlyphRun(float, float, GlyphRun, GlyphRunDescription, MeasuringMode, Matrix3x2?, int)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFactory2::TranslateColorGlyphRun(FLOAT baselineOriginX, FLOAT baselineOriginY, [in] DWRITE_GLYPH_RUN* glyphRun, [in, optional] DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription, DWRITE_MEASURING_MODE measuringMode, [in, optional] DWRITE_MATRIX* worldToDeviceTransform, UINT32 colorPaletteIndex, [out] IDWriteColorGlyphRunEnumerator** colorLayers)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColorGlyphRunEnumerator TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, MeasuringMode measuringMode, Matrix3x2? transform, int colorPaletteIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TranslateColorGlyphRun(baselineOriginX As Single, baselineOriginY As Single, glyphRun As GlyphRun, glyphRunDescription As GlyphRunDescription, measuringMode As MeasuringMode, transform As Matrix3x2?, colorPaletteIndex As Integer) As ColorGlyphRunEnumerator</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.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.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="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.Matrix3x2.html">Matrix3x2</a>?</td>
      <td><span class="parametername">transform</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colorPaletteIndex</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.DirectWrite.ColorGlyphRunEnumerator.html">ColorGlyphRunEnumerator</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
