# GrapeCity.Documents.Drawing.CellStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Drawing_CellStyle" data-uid="GrapeCity.Documents.Drawing.CellStyle" class="text-break">CellStyle Class
</h1>
  <div class="markdown level0 summary"><p>Describes the relative position, inner border, filling and layout of 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.Drawing.FrameStyle.html">FrameStyle</a></div>
    <div class="level2"><span class="xref">CellStyle</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Drawing.html">GrapeCity.Documents.Drawing</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Drawing_CellStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CellStyle : FrameStyle</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CellStyle
    Inherits FrameStyle</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle__ctor" data-uid="GrapeCity.Documents.Drawing.CellStyle.#ctor">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.-ctor.html#GrapeCity_Documents_Drawing_CellStyle__ctor">CellStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.html">CellStyle</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle__ctor_GrapeCity_Documents_Drawing_CellStyle_" data-uid="GrapeCity.Documents.Drawing.CellStyle.#ctor(GrapeCity.Documents.Drawing.CellStyle)">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.-ctor.html#GrapeCity_Documents_Drawing_CellStyle__ctor_GrapeCity_Documents_Drawing_CellStyle_">CellStyle(CellStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.html">CellStyle</a> class.</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_Documents_Drawing_CellStyle_Background" data-uid="GrapeCity.Documents.Drawing.CellStyle.Background">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.Background.html#GrapeCity_Documents_Drawing_CellStyle_Background">Background</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether this cell is a background cell that appears
behind the table grid, regular cells, and foreground cells. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_CreateTextLayout" data-uid="GrapeCity.Documents.Drawing.CellStyle.CreateTextLayout">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.CreateTextLayout.html#GrapeCity_Documents_Drawing_CellStyle_CreateTextLayout">CreateTextLayout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a delegate creating a <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a> from the specified <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.html">CellStyle</a> and a data object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_CustomDraw" data-uid="GrapeCity.Documents.Drawing.CellStyle.CustomDraw">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.CustomDraw.html#GrapeCity_Documents_Drawing_CellStyle_CustomDraw">CustomDraw</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a delegate that draws custom content in a table cell (before drawing a <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a>).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_CustomPostDraw" data-uid="GrapeCity.Documents.Drawing.CellStyle.CustomPostDraw">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.CustomPostDraw.html#GrapeCity_Documents_Drawing_CellStyle_CustomPostDraw">CustomPostDraw</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a delegate that draws custom content in a table cell (after drawing a <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a>).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_FixedHeight" data-uid="GrapeCity.Documents.Drawing.CellStyle.FixedHeight">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.FixedHeight.html#GrapeCity_Documents_Drawing_CellStyle_FixedHeight">FixedHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the content area height is independent of text height.
The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_FixedWidth" data-uid="GrapeCity.Documents.Drawing.CellStyle.FixedWidth">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.FixedWidth.html#GrapeCity_Documents_Drawing_CellStyle_FixedWidth">FixedWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the content area width is independent of text width.
The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_Foreground" data-uid="GrapeCity.Documents.Drawing.CellStyle.Foreground">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.Foreground.html#GrapeCity_Documents_Drawing_CellStyle_Foreground">Foreground</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether this cell is a foreground cell that appears
on top of the table grid, regular cells, and background cells. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_HorizontalPadding" data-uid="GrapeCity.Documents.Drawing.CellStyle.HorizontalPadding">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.HorizontalPadding.html#GrapeCity_Documents_Drawing_CellStyle_HorizontalPadding">HorizontalPadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the sum of left and right padding of the content area, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_MaxHeight" data-uid="GrapeCity.Documents.Drawing.CellStyle.MaxHeight">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.MaxHeight.html#GrapeCity_Documents_Drawing_CellStyle_MaxHeight">MaxHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum height of the content area, in graphic units.</p>
<p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (the default value) means there is no limit on the maximum height.</p>
<p>The value is ignored if the <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.FixedHeight.html#GrapeCity_Documents_Drawing_CellStyle_FixedHeight">FixedHeight</a> property is set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_MaxWidth" data-uid="GrapeCity.Documents.Drawing.CellStyle.MaxWidth">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.MaxWidth.html#GrapeCity_Documents_Drawing_CellStyle_MaxWidth">MaxWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum width of the content area, in graphic units.</p>
<p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (the default value) means there is no limit on the maximum width.</p>
<p>The value is ignored if the <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.FixedWidth.html#GrapeCity_Documents_Drawing_CellStyle_FixedWidth">FixedWidth</a> property is set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingAll" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingAll">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingAll.html#GrapeCity_Documents_Drawing_CellStyle_PaddingAll">PaddingAll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets all padding values at once (left, top, right, bottom), in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingBottom" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingBottom">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingBottom.html#GrapeCity_Documents_Drawing_CellStyle_PaddingBottom">PaddingBottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the bottom padding of the content area, in graphic units. The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingLeft" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingLeft">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingLeft.html#GrapeCity_Documents_Drawing_CellStyle_PaddingLeft">PaddingLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the left padding of the content area, in graphic units. The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingLeftRight" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingLeftRight">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingLeftRight.html#GrapeCity_Documents_Drawing_CellStyle_PaddingLeftRight">PaddingLeftRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the left and right padding of the content area, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingRight" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingRight">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingRight.html#GrapeCity_Documents_Drawing_CellStyle_PaddingRight">PaddingRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the right padding of the content area, in graphic units. The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingTop" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingTop">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingTop.html#GrapeCity_Documents_Drawing_CellStyle_PaddingTop">PaddingTop</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the top padding of the content area, in graphic units. The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_PaddingTopBottom" data-uid="GrapeCity.Documents.Drawing.CellStyle.PaddingTopBottom">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.PaddingTopBottom.html#GrapeCity_Documents_Drawing_CellStyle_PaddingTopBottom">PaddingTopBottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the top and bottom padding of the content area, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_ParagraphAlignment" data-uid="GrapeCity.Documents.Drawing.CellStyle.ParagraphAlignment">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.ParagraphAlignment.html#GrapeCity_Documents_Drawing_CellStyle_ParagraphAlignment">ParagraphAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of <a class="xref" href="GrapeCity.Documents.Text.TextLayout.ParagraphAlignment.html#GrapeCity_Documents_Text_TextLayout_ParagraphAlignment">ParagraphAlignment</a>.
The default is <a class="xref" href="GrapeCity.Documents.Text.ParagraphAlignment.html#GrapeCity_Documents_Text_ParagraphAlignment_Near">Near</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_Position" data-uid="GrapeCity.Documents.Drawing.CellStyle.Position">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.Position.html#GrapeCity_Documents_Drawing_CellStyle_Position">Position</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying whether a table cell appears behind or on top of other cells.
The default is <a class="xref" href="GrapeCity.Documents.Drawing.CellPosition.html#GrapeCity_Documents_Drawing_CellPosition_Normal">Normal</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_RightToLeft" data-uid="GrapeCity.Documents.Drawing.CellStyle.RightToLeft">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.RightToLeft.html#GrapeCity_Documents_Drawing_CellStyle_RightToLeft">RightToLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of <a class="xref" href="GrapeCity.Documents.Text.TextLayout.RightToLeft.html#GrapeCity_Documents_Text_TextLayout_RightToLeft">RightToLeft</a>.
The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_RotationAngle" data-uid="GrapeCity.Documents.Drawing.CellStyle.RotationAngle">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.RotationAngle.html#GrapeCity_Documents_Drawing_CellStyle_RotationAngle">RotationAngle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the rotation angle of the content area (0, 90, 180 or 270 degrees). The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_TextAlignment" data-uid="GrapeCity.Documents.Drawing.CellStyle.TextAlignment">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.TextAlignment.html#GrapeCity_Documents_Drawing_CellStyle_TextAlignment">TextAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of <a class="xref" href="GrapeCity.Documents.Text.TextLayout.TextAlignment.html#GrapeCity_Documents_Text_TextLayout_TextAlignment">TextAlignment</a>.
The default is <a class="xref" href="GrapeCity.Documents.Text.TextAlignment.html#GrapeCity_Documents_Text_TextAlignment_Leading">Leading</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_TextFormat" data-uid="GrapeCity.Documents.Drawing.CellStyle.TextFormat">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.TextFormat.html#GrapeCity_Documents_Drawing_CellStyle_TextFormat">TextFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the proposed <a class="xref" href="GrapeCity.Documents.Text.TextFormat.html">TextFormat</a> for cell's <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Drawing_CellStyle_VerticalPadding" data-uid="GrapeCity.Documents.Drawing.CellStyle.VerticalPadding">
          <a class="xref" href="GrapeCity.Documents.Drawing.CellStyle.VerticalPadding.html#GrapeCity_Documents_Drawing_CellStyle_VerticalPadding">VerticalPadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the sum of top and bottom padding of the content area, in graphic units.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
