# GrapeCity.Documents.Word.CellFormat

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_CellFormat" data-uid="GrapeCity.Documents.Word.CellFormat" class="text-break">CellFormat Class
</h1>
  <div class="markdown level0 summary"><p>Represents formatting for a table cell.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a></div>
    <div class="level2"><span class="xref">CellFormat</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_CellFormat_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CellFormat : FormattingBag</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CellFormat
    Inherits FormattingBag</code></pre>
  </div>
  <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_Documents_Word_CellFormat_Borders" data-uid="GrapeCity.Documents.Word.CellFormat.Borders">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.Borders.html#GrapeCity_Documents_Word_CellFormat_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of borders of a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_FitText" data-uid="GrapeCity.Documents.Word.CellFormat.FitText">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.FitText.html#GrapeCity_Documents_Word_CellFormat_FitText">FitText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to fit text in a cell,
compressing each paragraph to the width of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_GridSpan" data-uid="GrapeCity.Documents.Word.CellFormat.GridSpan">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.GridSpan.html#GrapeCity_Documents_Word_CellFormat_GridSpan">GridSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of grid columns in the parent table's table grid that shall be spanned by the current cell.
This property allows cells to have the appearance of being merged, as they span vertical boundaries of other cells in the table.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_HorizontalMerge" data-uid="GrapeCity.Documents.Word.CellFormat.HorizontalMerge">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.HorizontalMerge.html#GrapeCity_Documents_Word_CellFormat_HorizontalMerge">HorizontalMerge</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying how a cell is merged horizontally with other cells in the row.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_Padding" data-uid="GrapeCity.Documents.Word.CellFormat.Padding">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.Padding.html#GrapeCity_Documents_Word_CellFormat_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the cell paddings for a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_PreferredWidth" data-uid="GrapeCity.Documents.Word.CellFormat.PreferredWidth">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.PreferredWidth.html#GrapeCity_Documents_Word_CellFormat_PreferredWidth">PreferredWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the preferred width of a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_Shading" data-uid="GrapeCity.Documents.Word.CellFormat.Shading">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.Shading.html#GrapeCity_Documents_Word_CellFormat_Shading">Shading</a>
        </td>
        <td class="markdown level1 summary"><p>Gets shading formatting for a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_TableFormat" data-uid="GrapeCity.Documents.Word.CellFormat.TableFormat">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.TableFormat.html#GrapeCity_Documents_Word_CellFormat_TableFormat">TableFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the base table formatting properties for this cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_TextFlowDirection" data-uid="GrapeCity.Documents.Word.CellFormat.TextFlowDirection">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.TextFlowDirection.html#GrapeCity_Documents_Word_CellFormat_TextFlowDirection">TextFlowDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_VerticalAlignment" data-uid="GrapeCity.Documents.Word.CellFormat.VerticalAlignment">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.VerticalAlignment.html#GrapeCity_Documents_Word_CellFormat_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical alignment of text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_VerticalMerge" data-uid="GrapeCity.Documents.Word.CellFormat.VerticalMerge">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.VerticalMerge.html#GrapeCity_Documents_Word_CellFormat_VerticalMerge">VerticalMerge</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying how a cell is merged with other cells vertically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CellFormat_WordWrap" data-uid="GrapeCity.Documents.Word.CellFormat.WordWrap">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.WordWrap.html#GrapeCity_Documents_Word_CellFormat_WordWrap">WordWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to wrap text in a cell.</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_Documents_Word_CellFormat_ClearFormatting" data-uid="GrapeCity.Documents.Word.CellFormat.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.CellFormat.ClearFormatting.html#GrapeCity_Documents_Word_CellFormat_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets to default cell formatting.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
