# C1.Web.Mvc.Sheet.CellStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Sheet_CellStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle" class="text-break">CellStyle Class
</h1>
  <div class="markdown level0 summary"><p>Defines the cell styling properties.</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"><span class="xref">CellStyle</span></div>
      <div class="level2"><a class="xref" href="C1.Web.Mvc.Sheet.TableSectionStyle.html">TableSectionStyle</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Sheet.html">C1.Web.Mvc.Sheet</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.FlexSheet.dll</h6>
  <h5 id="C1_Web_Mvc_Sheet_CellStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CellStyle</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CellStyle</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="C1_Web_Mvc_Sheet_CellStyle__ctor" data-uid="C1.Web.Mvc.Sheet.CellStyle.#ctor">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.-ctor.html#C1_Web_Mvc_Sheet_CellStyle__ctor">CellStyle()</a>
        </td>
        <td class="markdown level1 summary"></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="C1_Web_Mvc_Sheet_CellStyle_BorderBottomColor" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderBottomColor">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderBottomColor.html#C1_Web_Mvc_Sheet_CellStyle_BorderBottomColor">BorderBottomColor</a>
        </td>
        <td class="markdown level1 summary"><p>Color of the Bottom border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderBottomStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderBottomStyle">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderBottomStyle.html#C1_Web_Mvc_Sheet_CellStyle_BorderBottomStyle">BorderBottomStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Style of the Bottom border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderBottomWidth" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderBottomWidth">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderBottomWidth.html#C1_Web_Mvc_Sheet_CellStyle_BorderBottomWidth">BorderBottomWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the Bottom border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderLeftColor" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderLeftColor">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderLeftColor.html#C1_Web_Mvc_Sheet_CellStyle_BorderLeftColor">BorderLeftColor</a>
        </td>
        <td class="markdown level1 summary"><p>Color of the Left border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderLeftStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderLeftStyle">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderLeftStyle.html#C1_Web_Mvc_Sheet_CellStyle_BorderLeftStyle">BorderLeftStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Style of the Left border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderLeftWidth" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderLeftWidth">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderLeftWidth.html#C1_Web_Mvc_Sheet_CellStyle_BorderLeftWidth">BorderLeftWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the Left border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderRightColor" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderRightColor">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderRightColor.html#C1_Web_Mvc_Sheet_CellStyle_BorderRightColor">BorderRightColor</a>
        </td>
        <td class="markdown level1 summary"><p>Color of the Right border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderRightStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderRightStyle">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderRightStyle.html#C1_Web_Mvc_Sheet_CellStyle_BorderRightStyle">BorderRightStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Style of the Right border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderRightWidth" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderRightWidth">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderRightWidth.html#C1_Web_Mvc_Sheet_CellStyle_BorderRightWidth">BorderRightWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the Right border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderTopColor" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderTopColor">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderTopColor.html#C1_Web_Mvc_Sheet_CellStyle_BorderTopColor">BorderTopColor</a>
        </td>
        <td class="markdown level1 summary"><p>Color of the Top border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderTopStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderTopStyle">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderTopStyle.html#C1_Web_Mvc_Sheet_CellStyle_BorderTopStyle">BorderTopStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Style of the Top border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_BorderTopWidth" data-uid="C1.Web.Mvc.Sheet.CellStyle.BorderTopWidth">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.BorderTopWidth.html#C1_Web_Mvc_Sheet_CellStyle_BorderTopWidth">BorderTopWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the Top border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_ClassName" data-uid="C1.Web.Mvc.Sheet.CellStyle.ClassName">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.ClassName.html#C1_Web_Mvc_Sheet_CellStyle_ClassName">ClassName</a>
        </td>
        <td class="markdown level1 summary"><p>The CSS class name to add to a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_Color" data-uid="C1.Web.Mvc.Sheet.CellStyle.Color">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.Color.html#C1_Web_Mvc_Sheet_CellStyle_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>The font color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_FontFamily" data-uid="C1.Web.Mvc.Sheet.CellStyle.FontFamily">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.FontFamily.html#C1_Web_Mvc_Sheet_CellStyle_FontFamily">FontFamily</a>
        </td>
        <td class="markdown level1 summary"><p>The font family.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_FontSize" data-uid="C1.Web.Mvc.Sheet.CellStyle.FontSize">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.FontSize.html#C1_Web_Mvc_Sheet_CellStyle_FontSize">FontSize</a>
        </td>
        <td class="markdown level1 summary"><p>The font size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_FontStyle" data-uid="C1.Web.Mvc.Sheet.CellStyle.FontStyle">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.FontStyle.html#C1_Web_Mvc_Sheet_CellStyle_FontStyle">FontStyle</a>
        </td>
        <td class="markdown level1 summary"><p>The font style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_FontWeight" data-uid="C1.Web.Mvc.Sheet.CellStyle.FontWeight">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.FontWeight.html#C1_Web_Mvc_Sheet_CellStyle_FontWeight">FontWeight</a>
        </td>
        <td class="markdown level1 summary"><p>The font weight.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_Format" data-uid="C1.Web.Mvc.Sheet.CellStyle.Format">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.Format.html#C1_Web_Mvc_Sheet_CellStyle_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Format string for formatting the value of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_TextAlign" data-uid="C1.Web.Mvc.Sheet.CellStyle.TextAlign">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.TextAlign.html#C1_Web_Mvc_Sheet_CellStyle_TextAlign">TextAlign</a>
        </td>
        <td class="markdown level1 summary"><p>The text alignment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_TextDecoration" data-uid="C1.Web.Mvc.Sheet.CellStyle.TextDecoration">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.TextDecoration.html#C1_Web_Mvc_Sheet_CellStyle_TextDecoration">TextDecoration</a>
        </td>
        <td class="markdown level1 summary"><p>The text decoration.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_VerticalAlign" data-uid="C1.Web.Mvc.Sheet.CellStyle.VerticalAlign">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.VerticalAlign.html#C1_Web_Mvc_Sheet_CellStyle_VerticalAlign">VerticalAlign</a>
        </td>
        <td class="markdown level1 summary"><p>The vertical alignment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Sheet_CellStyle_WhiteSpace" data-uid="C1.Web.Mvc.Sheet.CellStyle.WhiteSpace">
          <a class="xref" href="C1.Web.Mvc.Sheet.CellStyle.WhiteSpace.html#C1_Web_Mvc_Sheet_CellStyle_WhiteSpace">WhiteSpace</a>
        </td>
        <td class="markdown level1 summary"><p>Describes how whitespace inside the element is handled.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
