# C1.C1Preview.AlignHorzEnum

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_C1Preview_AlignHorzEnum" data-uid="C1.C1Preview.AlignHorzEnum" class="text-break">AlignHorzEnum Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies the horizontal alignment of text within a containing object.</p>
<p>This is the type of <a class="xref" href="C1.C1Preview.Style.TextAlignHorz.html#C1_C1Preview_Style_TextAlignHorz">TextAlignHorz</a> property.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_AlignHorzEnum_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum AlignHorzEnum</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum AlignHorzEnum</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_C1Preview_AlignHorzEnum_Center">Center</td>
        <td><p>The text is centered horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AlignHorzEnum_Justify">Justify</td>
        <td><p>The text is justified horizontally by widening the white spaces existing in the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AlignHorzEnum_JustifyChars">JustifyChars</td>
        <td><p>The text is justified horizontally by adding white spaces between all characters in the text.</p>
<!-- TODO: remove this limitation: -->
<p>(Note that if <a class="xref" href="C1.C1Preview.C1PrintDocument.UseGdiPlusTextRendering.html#C1_C1Preview_C1PrintDocument_UseGdiPlusTextRendering">UseGdiPlusTextRendering</a> is <b>false</b>,
this mode is not supported, and <a class="xref" href="C1.C1Preview.AlignHorzEnum.html#C1_C1Preview_AlignHorzEnum_Justify">Justify</a> is used instead.)</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AlignHorzEnum_Left">Left</td>
        <td><p>The text is left-aligned.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AlignHorzEnum_Right">Right</td>
        <td><p>The text is right-aligned.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
