# C1.WPF.Excel.XLAlignHorzEnum

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_WPF_Excel_XLAlignHorzEnum" data-uid="C1.WPF.Excel.XLAlignHorzEnum" class="text-break">XLAlignHorzEnum Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how to align cell content horizontally within a cell.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Excel.html">C1.WPF.Excel</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Excel.4.6.2.dll</h6>
  <h5 id="C1_WPF_Excel_XLAlignHorzEnum_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum XLAlignHorzEnum : byte</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum XLAlignHorzEnum As Byte</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_WPF_Excel_XLAlignHorzEnum_Center">Center</td>
        <td><p>Align to cell center.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Fill">Fill</td>
        <td><p>Fill cell, repeating content as necessary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_General">General</td>
        <td><p>Align strings to the left, numbers to the right.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Justify">Justify</td>
        <td><p>Justify content horizontally to span the whole cell width.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Left">Left</td>
        <td><p>Align to cell left.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Right">Right</td>
        <td><p>Align to cell right.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Selection">Selection</td>
        <td><p>Align to selection center (may span multiple cells).</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Excel_XLAlignHorzEnum_Undefined">Undefined</td>
        <td><p>Not specified (use default).</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
