# GrapeCity.Spreadsheet.Alignment

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_Alignment" data-uid="GrapeCity.Spreadsheet.Alignment" class="text-break">Alignment Struct
</h1>
  <div class="markdown level0 summary"><p>Represents the alignment settings.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.Alignment.html">Alignment</a>&gt;</div>
  </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_Alignment_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Alignment : IEquatable&lt;Alignment&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Alignment
    Implements IEquatable(Of Alignment)</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>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_DownwardText" data-uid="GrapeCity.Spreadsheet.Alignment.DownwardText">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.DownwardText.html">DownwardText</a>
        </td>
        <td class="markdown level1 summary"><p>A constant integer value represent the downward text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_Empty" data-uid="GrapeCity.Spreadsheet.Alignment.Empty">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an empty <a class="xref" href="GrapeCity.Spreadsheet.Alignment.html">Alignment</a> value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_HorizontalText" data-uid="GrapeCity.Spreadsheet.Alignment.HorizontalText">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.HorizontalText.html">HorizontalText</a>
        </td>
        <td class="markdown level1 summary"><p>A constant integer value represent the horizontal text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_UpwardText" data-uid="GrapeCity.Spreadsheet.Alignment.UpwardText">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.UpwardText.html">UpwardText</a>
        </td>
        <td class="markdown level1 summary"><p>A constant integer value represent the upward text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_VerticalText" data-uid="GrapeCity.Spreadsheet.Alignment.VerticalText">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.VerticalText.html">VerticalText</a>
        </td>
        <td class="markdown level1 summary"><p>A constant integer value represent the vertical text.</p>
</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="GrapeCity_Spreadsheet_Alignment_HAlignment" data-uid="GrapeCity.Spreadsheet.Alignment.HAlignment">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.HAlignment.html#GrapeCity_Spreadsheet_Alignment_HAlignment">HAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of horizontal alignment in cells.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_Indent" data-uid="GrapeCity.Spreadsheet.Alignment.Indent">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Indent.html#GrapeCity_Spreadsheet_Alignment_Indent">Indent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of spaces (of the normal style font) of indentation for text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_JustifyLastLine" data-uid="GrapeCity.Spreadsheet.Alignment.JustifyLastLine">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.JustifyLastLine.html#GrapeCity_Spreadsheet_Alignment_JustifyLastLine">JustifyLastLine</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if the cells justified or distributed alignment should be used on the last line of text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_ReadingOrder" data-uid="GrapeCity.Spreadsheet.Alignment.ReadingOrder">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.ReadingOrder.html#GrapeCity_Spreadsheet_Alignment_ReadingOrder">ReadingOrder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the reading order (bidirectionality) of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_RelativeIndent" data-uid="GrapeCity.Spreadsheet.Alignment.RelativeIndent">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.RelativeIndent.html#GrapeCity_Spreadsheet_Alignment_RelativeIndent">RelativeIndent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the additional number of spaces of indentation to adjust for text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_ShrinkToFit" data-uid="GrapeCity.Spreadsheet.Alignment.ShrinkToFit">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.ShrinkToFit.html#GrapeCity_Spreadsheet_Alignment_ShrinkToFit">ShrinkToFit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the displayed text in the cell should be shrunk to fit the cell width.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_TextRotation" data-uid="GrapeCity.Spreadsheet.Alignment.TextRotation">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.TextRotation.html#GrapeCity_Spreadsheet_Alignment_TextRotation">TextRotation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text rotation in cells.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_VAlignment" data-uid="GrapeCity.Spreadsheet.Alignment.VAlignment">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.VAlignment.html#GrapeCity_Spreadsheet_Alignment_VAlignment">VAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of vertical alignment in cells.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_WrapText" data-uid="GrapeCity.Spreadsheet.Alignment.WrapText">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.WrapText.html#GrapeCity_Spreadsheet_Alignment_WrapText">WrapText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the text is wrappable.</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="GrapeCity_Spreadsheet_Alignment_Equals_GrapeCity_Spreadsheet_Alignment_" data-uid="GrapeCity.Spreadsheet.Alignment.Equals(GrapeCity.Spreadsheet.Alignment)">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Equals.html#GrapeCity_Spreadsheet_Alignment_Equals_GrapeCity_Spreadsheet_Alignment_">Equals(Alignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_Equals_System_Object_" data-uid="GrapeCity.Spreadsheet.Alignment.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Equals.html#GrapeCity_Spreadsheet_Alignment_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_GetHashCode" data-uid="GrapeCity.Spreadsheet.Alignment.GetHashCode">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.GetHashCode.html#GrapeCity_Spreadsheet_Alignment_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_IsEmpty" data-uid="GrapeCity.Spreadsheet.Alignment.IsEmpty">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.IsEmpty.html#GrapeCity_Spreadsheet_Alignment_IsEmpty">IsEmpty()</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this <a class="xref" href="GrapeCity.Spreadsheet.Alignment.html">Alignment</a> is empty.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_IsSet_GrapeCity_Spreadsheet_AlignmentAttributes_" data-uid="GrapeCity.Spreadsheet.Alignment.IsSet(GrapeCity.Spreadsheet.AlignmentAttributes)">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.IsSet.html#GrapeCity_Spreadsheet_Alignment_IsSet_GrapeCity_Spreadsheet_AlignmentAttributes_">IsSet(AlignmentAttributes)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified attribute(s) is set.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_Reset_GrapeCity_Spreadsheet_AlignmentAttributes_" data-uid="GrapeCity.Spreadsheet.Alignment.Reset(GrapeCity.Spreadsheet.AlignmentAttributes)">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Reset.html#GrapeCity_Spreadsheet_Alignment_Reset_GrapeCity_Spreadsheet_AlignmentAttributes_">Reset(AlignmentAttributes)</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the specified attribute(s).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Alignment_Set_GrapeCity_Spreadsheet_AlignmentAttributes_" data-uid="GrapeCity.Spreadsheet.Alignment.Set(GrapeCity.Spreadsheet.AlignmentAttributes)">
          <a class="xref" href="GrapeCity.Spreadsheet.Alignment.Set.html#GrapeCity_Spreadsheet_Alignment_Set_GrapeCity_Spreadsheet_AlignmentAttributes_">Set(AlignmentAttributes)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the specified attribute.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
