# GrapeCity.Documents.Word.ConditionalStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_ConditionalStyle" data-uid="GrapeCity.Documents.Word.ConditionalStyle" class="text-break">ConditionalStyle Class
</h1>
  <div class="markdown level0 summary"><p>Represents special formatting applied to specified areas of a table
when the selected table is formatted with a specified table style.</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"><a class="xref" href="GrapeCity.Documents.Word.TableStyleBase.html">TableStyleBase</a></div>
    <div class="level3"><span class="xref">ConditionalStyle</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_ConditionalStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ConditionalStyle : TableStyleBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ConditionalStyle
    Inherits TableStyleBase</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_ConditionalStyle_BaseKey" data-uid="GrapeCity.Documents.Word.ConditionalStyle.BaseKey">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.BaseKey.html#GrapeCity_Documents_Word_ConditionalStyle_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_ConditionalStyle_Borders" data-uid="GrapeCity.Documents.Word.ConditionalStyle.Borders">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.Borders.html#GrapeCity_Documents_Word_ConditionalStyle_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the cell borders formatting.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ConditionalStyle_Font" data-uid="GrapeCity.Documents.Word.ConditionalStyle.Font">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.Font.html#GrapeCity_Documents_Word_ConditionalStyle_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the character formatting of the style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ConditionalStyle_Padding" data-uid="GrapeCity.Documents.Word.ConditionalStyle.Padding">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.Padding.html#GrapeCity_Documents_Word_ConditionalStyle_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_ConditionalStyle_ParagraphFormat" data-uid="GrapeCity.Documents.Word.ConditionalStyle.ParagraphFormat">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.ParagraphFormat.html#GrapeCity_Documents_Word_ConditionalStyle_ParagraphFormat">ParagraphFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the paragraph formatting of the style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ConditionalStyle_Shading" data-uid="GrapeCity.Documents.Word.ConditionalStyle.Shading">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.Shading.html#GrapeCity_Documents_Word_ConditionalStyle_Shading">Shading</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the shading that shall be applied to the extents of a 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_ConditionalStyle_Type" data-uid="GrapeCity.Documents.Word.ConditionalStyle.Type">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.Type.html#GrapeCity_Documents_Word_ConditionalStyle_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of conditional style (portion of table formatting to override).</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_ConditionalStyle_ClearFormatting" data-uid="GrapeCity.Documents.Word.ConditionalStyle.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.ConditionalStyle.ClearFormatting.html#GrapeCity_Documents_Word_ConditionalStyle_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets to default conditional table style formatting.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
