# GrapeCity.Spreadsheet.HorizontalAlignment

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Spreadsheet_HorizontalAlignment" data-uid="GrapeCity.Spreadsheet.HorizontalAlignment" class="text-break">HorizontalAlignment Enum
</h1>
  <div class="markdown level0 summary"><p>Enum the horizontal alignment of a cell or object.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_HorizontalAlignment_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum HorizontalAlignment : byte</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum HorizontalAlignment 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="GrapeCity_Spreadsheet_HorizontalAlignment_Center">Center</td>
        <td><p>Spedifies that the text should be centered.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_CenterAcrossSelection">CenterAcrossSelection</td>
        <td><p>The horizontal alignment is centered across multiple cells.The information about how many cells to span is
expressed in the Sheet Part, in the row of the cell in question. For each cell that is spanned in the
alignment, a cell element needs to be written out, with the same style Id which references the centerContinuous alignment.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_Distributed">Distributed</td>
        <td><p>Specifies that text should wrap and be aligned to form straight edges on the left and right, including the last line.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_Fill">Fill</td>
        <td><p>Specifies that the text will be repeated to fill the cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_General">General</td>
        <td><p>Specifies that text is left justified, numbers (including dates and times) are right justified, and logical values are centered.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_Justify">Justify</td>
        <td><p>Specifies that text should wrap and be aligned to form straight edges on the left and right, except for the last line which is left justified.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_Left">Left</td>
        <td><p>Spedifies left justification.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_HorizontalAlignment_Right">Right</td>
        <td><p>Spedifies right justification.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
