# C1.Util.DX.DirectWrite.ColorGlyphRun

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DirectWrite_ColorGlyphRun" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun" class="text-break">ColorGlyphRun Class
</h1>
  <div class="markdown level0 summary"><p>DWRITE_COLOR_GLYPH_RUN</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ColorGlyphRun</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DirectWrite.html">C1.Util.DX.DirectWrite</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_DirectWrite_ColorGlyphRun_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ColorGlyphRun : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ColorGlyphRun
    Implements IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun__ctor" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.#ctor">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.-ctor.html#C1_Util_DX_DirectWrite_ColorGlyphRun__ctor">ColorGlyphRun()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_Advances" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.Advances">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.Advances.html">Advances</a>
        </td>
        <td class="markdown level1 summary"><p>An optional array of glyph advances. This array could be null or contains <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphCount.html">GlyphCount</a> elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_BaselineOriginX" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.BaselineOriginX">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.BaselineOriginX.html">BaselineOriginX</a>
        </td>
        <td class="markdown level1 summary"><p>X-coordinate at which to draw this glyph run.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_BaselineOriginY" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.BaselineOriginY">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.BaselineOriginY.html">BaselineOriginY</a>
        </td>
        <td class="markdown level1 summary"><p>Y-coordinate at which to draw this glyph run.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_BidiLevel" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.BidiLevel">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.BidiLevel.html">BidiLevel</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int bidiLevel</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_FontFace" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.FontFace">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.FontFace.html">FontFace</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.FontFace.html">FontFace</a> associated with this GlypRun.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_FontSize" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.FontSize">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.FontSize.html">FontSize</a>
        </td>
        <td class="markdown level1 summary"><p>float fontEmSize</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_GlyphCount" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphCount">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphCount.html">GlyphCount</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int glyphCount</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_GlyphRunDescription" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphRunDescription">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphRunDescription.html">GlyphRunDescription</a>
        </td>
        <td class="markdown level1 summary"><p>Optional glyph run description.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_Indices" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.Indices">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.Indices.html">Indices</a>
        </td>
        <td class="markdown level1 summary"><p>An array of glyph indices. This array contains <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphCount.html">GlyphCount</a> elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_IsSideways" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.IsSideways">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.IsSideways.html">IsSideways</a>
        </td>
        <td class="markdown level1 summary"><p>BOOL isSideways</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_Offsets" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.Offsets">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.Offsets.html">Offsets</a>
        </td>
        <td class="markdown level1 summary"><p>An optional array of glyph offsets. This array could be null or contains <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.GlyphCount.html">GlyphCount</a> elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_PaletteIndex" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.PaletteIndex">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.PaletteIndex.html">PaletteIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Zero-based index of this layer's color entry in the current color
palette, or -1 if this layer is to be rendered using
the current foreground brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_RunColor" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.RunColor">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.RunColor.html">RunColor</a>
        </td>
        <td class="markdown level1 summary"><p>Color to use for this layer, if any.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DirectWrite_ColorGlyphRun_Dispose" data-uid="C1.Util.DX.DirectWrite.ColorGlyphRun.Dispose">
          <a class="xref" href="C1.Util.DX.DirectWrite.ColorGlyphRun.Dispose.html#C1_Util_DX_DirectWrite_ColorGlyphRun_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
