# C1.Win.Drawing.StringRendererGDI

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Drawing_StringRendererGDI" data-uid="C1.Win.Drawing.StringRendererGDI" class="text-break">StringRendererGDI Class
</h1>
  <div class="markdown level0 summary"><p>Provides methods used to measure and render text using GDI.</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"><a class="xref" href="C1.Win.Drawing.StringRendererBase.html">StringRendererBase</a></div>
    <div class="level2"><span class="xref">StringRendererGDI</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Drawing.html">C1.Win.Drawing</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Drawing_StringRendererGDI_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StringRendererGDI : StringRendererBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StringRendererGDI
    Inherits StringRendererBase</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_Win_Drawing_StringRendererGDI__ctor" data-uid="C1.Win.Drawing.StringRendererGDI.#ctor">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.-ctor.html#C1_Win_Drawing_StringRendererGDI__ctor">StringRendererGDI()</a>
        </td>
        <td class="markdown level1 summary"></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_Win_Drawing_StringRendererGDI_GetTextFormatFlags_System_Drawing_StringFormat_System_Boolean_" data-uid="C1.Win.Drawing.StringRendererGDI.GetTextFormatFlags(System.Drawing.StringFormat,System.Boolean)">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.GetTextFormatFlags.html#C1_Win_Drawing_StringRendererGDI_GetTextFormatFlags_System_Drawing_StringFormat_System_Boolean_">GetTextFormatFlags(StringFormat, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textformatflags">TextFormatFlags</a> corresponding to the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.stringformat">StringFormat</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererGDI_HighlightSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Color_System_Drawing_Rectangle_System_String_System_Drawing_Color_System_Collections_Generic_IList_System_Drawing_CharacterRange__" data-uid="C1.Win.Drawing.StringRendererGDI.HighlightSubstring(System.Drawing.Graphics,System.Drawing.Font,System.Windows.Forms.TextFormatFlags,System.Drawing.Color,System.Drawing.Rectangle,System.String,System.Drawing.Color,System.Collections.Generic.IList{System.Drawing.CharacterRange})">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.HighlightSubstring.html#C1_Win_Drawing_StringRendererGDI_HighlightSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Color_System_Drawing_Rectangle_System_String_System_Drawing_Color_System_Collections_Generic_IList_System_Drawing_CharacterRange__">HighlightSubstring(Graphics, Font, TextFormatFlags, Color, Rectangle, string, Color, IList&lt;CharacterRange&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws text and highlight a parts of that text with a special background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererGDI_HighlightSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Color_System_Drawing_Rectangle_System_String_System_Drawing_Color_System_String_System_Int32_" data-uid="C1.Win.Drawing.StringRendererGDI.HighlightSubstring(System.Drawing.Graphics,System.Drawing.Font,System.Windows.Forms.TextFormatFlags,System.Drawing.Color,System.Drawing.Rectangle,System.String,System.Drawing.Color,System.String,System.Int32)">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.HighlightSubstring.html#C1_Win_Drawing_StringRendererGDI_HighlightSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Color_System_Drawing_Rectangle_System_String_System_Drawing_Color_System_String_System_Int32_">HighlightSubstring(Graphics, Font, TextFormatFlags, Color, Rectangle, string, Color, string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws text and highlight a part of that text with a special background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_Collections_Generic_IList_System_Drawing_CharacterRange__" data-uid="C1.Win.Drawing.StringRendererGDI.MeasureSubstring(System.Drawing.Graphics,System.Drawing.Font,System.Windows.Forms.TextFormatFlags,System.Drawing.Rectangle,System.String,System.Collections.Generic.IList{System.Drawing.CharacterRange})">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.MeasureSubstring.html#C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_Collections_Generic_IList_System_Drawing_CharacterRange__">MeasureSubstring(Graphics, Font, TextFormatFlags, Rectangle, string, IList&lt;CharacterRange&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bounds for displaying the part of this text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_Int32_System_Int32_" data-uid="C1.Win.Drawing.StringRendererGDI.MeasureSubstring(System.Drawing.Graphics,System.Drawing.Font,System.Windows.Forms.TextFormatFlags,System.Drawing.Rectangle,System.String,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.MeasureSubstring.html#C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_Int32_System_Int32_">MeasureSubstring(Graphics, Font, TextFormatFlags, Rectangle, string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bounds for displaying the part of this text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_String_System_Int32_" data-uid="C1.Win.Drawing.StringRendererGDI.MeasureSubstring(System.Drawing.Graphics,System.Drawing.Font,System.Windows.Forms.TextFormatFlags,System.Drawing.Rectangle,System.String,System.String,System.Int32)">
          <a class="xref" href="C1.Win.Drawing.StringRendererGDI.MeasureSubstring.html#C1_Win_Drawing_StringRendererGDI_MeasureSubstring_System_Drawing_Graphics_System_Drawing_Font_System_Windows_Forms_TextFormatFlags_System_Drawing_Rectangle_System_String_System_String_System_Int32_">MeasureSubstring(Graphics, Font, TextFormatFlags, Rectangle, string, string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bounds for displaying the part of this text.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
