# GrapeCity.Documents.Excel.IStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_IStyle" data-uid="GrapeCity.Documents.Excel.IStyle" class="text-break">IStyle Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a style description for a range.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_IStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IStyle</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IStyle</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_Excel_IStyle_AddIndent" data-uid="GrapeCity.Documents.Excel.IStyle.AddIndent">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.AddIndent.html#GrapeCity_Documents_Excel_IStyle_AddIndent">AddIndent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Borders" data-uid="GrapeCity.Documents.Excel.IStyle.Borders">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Borders.html#GrapeCity_Documents_Excel_IStyle_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="GrapeCity.Documents.Excel.IBorders.html">IBorders</a> collection that represents the borders of a style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_BuiltIn" data-uid="GrapeCity.Documents.Excel.IStyle.BuiltIn">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.BuiltIn.html#GrapeCity_Documents_Excel_IStyle_BuiltIn">BuiltIn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the style is a built-in style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Font" data-uid="GrapeCity.Documents.Excel.IStyle.Font">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Font.html#GrapeCity_Documents_Excel_IStyle_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a> object that represents the font of the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_FormulaHidden" data-uid="GrapeCity.Documents.Excel.IStyle.FormulaHidden">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.FormulaHidden.html#GrapeCity_Documents_Excel_IStyle_FormulaHidden">FormulaHidden</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the formula is hidden when the worksheet is protected.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_HorizontalAlignment" data-uid="GrapeCity.Documents.Excel.IStyle.HorizontalAlignment">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.HorizontalAlignment.html#GrapeCity_Documents_Excel_IStyle_HorizontalAlignment">HorizontalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal alignment for the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludeAlignment" data-uid="GrapeCity.Documents.Excel.IStyle.IncludeAlignment">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludeAlignment.html#GrapeCity_Documents_Excel_IStyle_IncludeAlignment">IncludeAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether style includes the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.AddIndent, <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.HorizontalAlignment, <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.VerticalAlignment, <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.WrapText, and <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.Orientation properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludeBorder" data-uid="GrapeCity.Documents.Excel.IStyle.IncludeBorder">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludeBorder.html#GrapeCity_Documents_Excel_IStyle_IncludeBorder">IncludeBorder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes the <a class="xref" href="GrapeCity.Documents.Excel.IBorder.html">IBorder</a>.Color, <a class="xref" href="GrapeCity.Documents.Excel.IBorder.html">IBorder</a>.ColorIndex,<a class="xref" href="GrapeCity.Documents.Excel.IBorder.html">IBorder</a>.LineStyle, and <a class="xref" href="GrapeCity.Documents.Excel.IBorder.html">IBorder</a>.Weight border properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludeFont" data-uid="GrapeCity.Documents.Excel.IStyle.IncludeFont">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludeFont.html#GrapeCity_Documents_Excel_IStyle_IncludeFont">IncludeFont</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes the <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Bold, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Color,<a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.ColorIndex, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.FontStyle,<a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Italic, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Name,<a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.OutlineFont, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Shadow,<a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Size, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Strikethrough,<a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Subscript, <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Superscript, and <a class="xref" href="GrapeCity.Documents.Excel.IFont.html">IFont</a>.Underline font properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludeNumber" data-uid="GrapeCity.Documents.Excel.IStyle.IncludeNumber">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludeNumber.html#GrapeCity_Documents_Excel_IStyle_IncludeNumber">IncludeNumber</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.NumberFormat property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludePatterns" data-uid="GrapeCity.Documents.Excel.IStyle.IncludePatterns">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludePatterns.html#GrapeCity_Documents_Excel_IStyle_IncludePatterns">IncludePatterns</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes the <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a>.Color, <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a>.InvertIfNegative, <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a>.Pattern, <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a>.PatternColor, and <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a>.PatternColorIndex interior properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IncludeProtection" data-uid="GrapeCity.Documents.Excel.IStyle.IncludeProtection">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IncludeProtection.html#GrapeCity_Documents_Excel_IStyle_IncludeProtection">IncludeProtection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.FormulaHidden and <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a>.Locked properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_IndentLevel" data-uid="GrapeCity.Documents.Excel.IStyle.IndentLevel">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.IndentLevel.html#GrapeCity_Documents_Excel_IStyle_IndentLevel">IndentLevel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the indent level for the style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Interior" data-uid="GrapeCity.Documents.Excel.IStyle.Interior">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Interior.html#GrapeCity_Documents_Excel_IStyle_Interior">Interior</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an <a class="xref" href="GrapeCity.Documents.Excel.IInterior.html">IInterior</a> object that represents the interior of the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Locked" data-uid="GrapeCity.Documents.Excel.IStyle.Locked">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Locked.html#GrapeCity_Documents_Excel_IStyle_Locked">Locked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the object is locked; False if the object can be modified when the sheet is protected.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Name" data-uid="GrapeCity.Documents.Excel.IStyle.Name">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Name.html#GrapeCity_Documents_Excel_IStyle_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the name of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_NumberFormat" data-uid="GrapeCity.Documents.Excel.IStyle.NumberFormat">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.NumberFormat.html#GrapeCity_Documents_Excel_IStyle_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format code for the object as a string in the language of the user.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_Orientation" data-uid="GrapeCity.Documents.Excel.IStyle.Orientation">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Orientation.html#GrapeCity_Documents_Excel_IStyle_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text orientation. Can be an integer value from –90 to 90 degrees.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_ShrinkToFit" data-uid="GrapeCity.Documents.Excel.IStyle.ShrinkToFit">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.ShrinkToFit.html#GrapeCity_Documents_Excel_IStyle_ShrinkToFit">ShrinkToFit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the text automatically shrinks to fit in the available column width.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_VerticalAlignment" data-uid="GrapeCity.Documents.Excel.IStyle.VerticalAlignment">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.VerticalAlignment.html#GrapeCity_Documents_Excel_IStyle_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical alignment of the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_WrapText" data-uid="GrapeCity.Documents.Excel.IStyle.WrapText">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.WrapText.html#GrapeCity_Documents_Excel_IStyle_WrapText">WrapText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to wrap the text.</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_Excel_IStyle_Delete" data-uid="GrapeCity.Documents.Excel.IStyle.Delete">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.Delete.html#GrapeCity_Documents_Excel_IStyle_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_FromJson_System_String_" data-uid="GrapeCity.Documents.Excel.IStyle.FromJson(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.FromJson.html#GrapeCity_Documents_Excel_IStyle_FromJson_System_String_">FromJson(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates the named style from the json string.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyle_ToJson" data-uid="GrapeCity.Documents.Excel.IStyle.ToJson">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyle.ToJson.html#GrapeCity_Documents_Excel_IStyle_ToJson">ToJson()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a json string from the named style.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
