# FarPoint.Win.Text.TextHelper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Text_TextHelper" data-uid="FarPoint.Win.Text.TextHelper" class="text-break">TextHelper Class
</h1>
  <div class="markdown level0 summary"><p>Provides static methods to draw text with various styles and settings</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">TextHelper</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Text.html">FarPoint.Win.Text</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.dll</h6>
  <h5 id="FarPoint_Win_Text_TextHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextHelper</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextHelper</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="FarPoint_Win_Text_TextHelper__ctor" data-uid="FarPoint.Win.Text.TextHelper.#ctor">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.-ctor.html#FarPoint_Win_Text_TextHelper__ctor">TextHelper()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Text_TextHelper_UseGDITextRendering" data-uid="FarPoint.Win.Text.TextHelper.UseGDITextRendering">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.UseGDITextRendering.html#FarPoint_Win_Text_TextHelper_UseGDITextRendering">UseGDITextRendering</a>
        </td>
        <td class="markdown level1 summary"><p>If true the GDI text rendering is used.</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="FarPoint_Win_Text_TextHelper_Draw_FarPoint_Win_Text_DrawTextArgs_" data-uid="FarPoint.Win.Text.TextHelper.Draw(FarPoint.Win.Text.DrawTextArgs)">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.Draw.html#FarPoint_Win_Text_TextHelper_Draw_FarPoint_Win_Text_DrawTextArgs_">Draw(DrawTextArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the text.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Text_TextHelper_Draw_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Color_System_Drawing_RectangleF_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_TextOrientation_System_Boolean_System_Boolean_System_Drawing_Text_HotkeyPrefix_System_Drawing_StringTrimming_System_Int32_System_Boolean_System_Double_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Text.TextHelper.Draw(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Color,System.Drawing.RectangleF,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.TextOrientation,System.Boolean,System.Boolean,System.Drawing.Text.HotkeyPrefix,System.Drawing.StringTrimming,System.Int32,System.Boolean,System.Double,System.Int32,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.Draw.html#FarPoint_Win_Text_TextHelper_Draw_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Color_System_Drawing_RectangleF_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_TextOrientation_System_Boolean_System_Boolean_System_Drawing_Text_HotkeyPrefix_System_Drawing_StringTrimming_System_Int32_System_Boolean_System_Double_System_Int32_System_Boolean_">Draw(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming, int, bool, double, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the text.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Text_TextHelper_IsComplexString_System_String_" data-uid="FarPoint.Win.Text.TextHelper.IsComplexString(System.String)">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.IsComplexString.html#FarPoint_Win_Text_TextHelper_IsComplexString_System_String_">IsComplexString(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the string is a complex string with RTL reading order.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Text_TextHelper_Measure_FarPoint_Win_Text_DrawTextArgs_" data-uid="FarPoint.Win.Text.TextHelper.Measure(FarPoint.Win.Text.DrawTextArgs)">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.Measure.html#FarPoint_Win_Text_TextHelper_Measure_FarPoint_Win_Text_DrawTextArgs_">Measure(DrawTextArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the size of the text.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Text_TextHelper_Measure_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Color_System_Drawing_RectangleF_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_TextOrientation_System_Boolean_System_Boolean_System_Drawing_Text_HotkeyPrefix_System_Drawing_StringTrimming_System_Int32_System_Boolean_System_Double_System_Int32_" data-uid="FarPoint.Win.Text.TextHelper.Measure(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Color,System.Drawing.RectangleF,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.TextOrientation,System.Boolean,System.Boolean,System.Drawing.Text.HotkeyPrefix,System.Drawing.StringTrimming,System.Int32,System.Boolean,System.Double,System.Int32)">
          <a class="xref" href="FarPoint.Win.Text.TextHelper.Measure.html#FarPoint_Win_Text_TextHelper_Measure_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Color_System_Drawing_RectangleF_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_TextOrientation_System_Boolean_System_Boolean_System_Drawing_Text_HotkeyPrefix_System_Drawing_StringTrimming_System_Int32_System_Boolean_System_Double_System_Int32_">Measure(Graphics, string, Font, Color, RectangleF, HorizontalAlignment, VerticalAlignment, TextOrientation, bool, bool, HotkeyPrefix, StringTrimming, int, bool, double, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the size of the text.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
