# GrapeCity.Documents.Word.TableFormatBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_TableFormatBase" data-uid="GrapeCity.Documents.Word.TableFormatBase" class="text-break">TableFormatBase Class
</h1>
  <div class="markdown level0 summary"><p>Represents base formatting for a table.</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">TableFormatBase</span></div>
      <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.TableFormat.html">TableFormat</a></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_TableFormatBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TableFormatBase : FormattingBag</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TableFormatBase
    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_TableFormatBase_Alignment" data-uid="GrapeCity.Documents.Word.TableFormatBase.Alignment">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Alignment.html#GrapeCity_Documents_Word_TableFormatBase_Alignment">Alignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how the table is aligned in the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_AllowAutoFit" data-uid="GrapeCity.Documents.Word.TableFormatBase.AllowAutoFit">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.AllowAutoFit.html#GrapeCity_Documents_Word_TableFormatBase_AllowAutoFit">AllowAutoFit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether automatically resizing cells in a table to fit their contents is allowed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_BaseKey" data-uid="GrapeCity.Documents.Word.TableFormatBase.BaseKey">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.BaseKey.html#GrapeCity_Documents_Word_TableFormatBase_BaseKey">BaseKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the base (this class) key for formatting properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_Borders" data-uid="GrapeCity.Documents.Word.TableFormatBase.Borders">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Borders.html#GrapeCity_Documents_Word_TableFormatBase_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the table borders formatting.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_Indent" data-uid="GrapeCity.Documents.Word.TableFormatBase.Indent">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Indent.html#GrapeCity_Documents_Word_TableFormatBase_Indent">Indent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the indentation (in points) that shall be added before the leading edge of the current table.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_Padding" data-uid="GrapeCity.Documents.Word.TableFormatBase.Padding">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Padding.html#GrapeCity_Documents_Word_TableFormatBase_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default paddings for all cells in the current table.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_PreferredWidth" data-uid="GrapeCity.Documents.Word.TableFormatBase.PreferredWidth">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.PreferredWidth.html#GrapeCity_Documents_Word_TableFormatBase_PreferredWidth">PreferredWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the table preferred width.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_Shading" data-uid="GrapeCity.Documents.Word.TableFormatBase.Shading">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Shading.html#GrapeCity_Documents_Word_TableFormatBase_Shading">Shading</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the shading that shall be applied to the extents of the current table.
Similarly to paragraph shading, this shading shall be applied to the contents of the tab up to the table borders,
regardless of the presence of text - unlike cell shading, table shading shall include any cell padding.
This property shall be superseded by any cell-level shading.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_Spacing" data-uid="GrapeCity.Documents.Word.TableFormatBase.Spacing">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.Spacing.html#GrapeCity_Documents_Word_TableFormatBase_Spacing">Spacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the default amount of space (in points) between the cells.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_StyleOptions" data-uid="GrapeCity.Documents.Word.TableFormatBase.StyleOptions">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.StyleOptions.html#GrapeCity_Documents_Word_TableFormatBase_StyleOptions">StyleOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the bit flags that specify how a table style is applied to this table.</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_TableFormatBase_ClearFormatting" data-uid="GrapeCity.Documents.Word.TableFormatBase.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.ClearFormatting.html#GrapeCity_Documents_Word_TableFormatBase_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets to default table formatting.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TableFormatBase_SetAlignment_GrapeCity_Documents_Word_TableAlignment_" data-uid="GrapeCity.Documents.Word.TableFormatBase.SetAlignment(GrapeCity.Documents.Word.TableAlignment)">
          <a class="xref" href="GrapeCity.Documents.Word.TableFormatBase.SetAlignment.html#GrapeCity_Documents_Word_TableFormatBase_SetAlignment_GrapeCity_Documents_Word_TableAlignment_">SetAlignment(TableAlignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets how the table is aligned in the document.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
