# C1.Framework.Drawing.Gdi.DeviceContexts.TextAlignment

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.TextAlignment" class="text-break">TextAlignment Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies the text alignment by using a mask of the values in the following list.
Only one flag can be chosen from those that affect horizontal and vertical alignment.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.html">C1.Framework.Drawing.Gdi.DeviceContexts</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Flags]
public enum TextAlignment</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Flags&gt;
Public Enum TextAlignment</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Baseline">Baseline</td>
        <td><p>The reference point will be on the base line of the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Bottom">Bottom</td>
        <td><p>The reference point will be on the bottom edge of the bounding rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Center">Center</td>
        <td><p>The reference point will be aligned horizontally with the center of the bounding rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Left">Left</td>
        <td><p>The reference point will be on the left edge of the bounding rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Right">Right</td>
        <td><p>The reference point will be on the right edge of the bounding rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_DeviceContexts_TextAlignment_Top">Top</td>
        <td><p>The reference point will be on the top edge of the bounding rectangle.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
