# GrapeCity.Spreadsheet.IStyles

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_IStyles" data-uid="GrapeCity.Spreadsheet.IStyles" class="text-break">IStyles Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of all styles in the workbook.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_IStyles_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IStyles</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IStyles</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_Spreadsheet_IStyles_Count" data-uid="GrapeCity.Spreadsheet.IStyles.Count">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Count.html#GrapeCity_Spreadsheet_IStyles_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an integer value that represents the number of styles in the <a class="xref" href="GrapeCity.Spreadsheet.IStyles.html">IStyles</a> collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IStyles_Item_GrapeCity_Spreadsheet_BuiltInStyle_" data-uid="GrapeCity.Spreadsheet.IStyles.Item(GrapeCity.Spreadsheet.BuiltInStyle)">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Item.html#GrapeCity_Spreadsheet_IStyles_Item_GrapeCity_Spreadsheet_BuiltInStyle_">this[BuiltInStyle]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the built-in <a class="xref" href="GrapeCity.Spreadsheet.IStyle.html">IStyle</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IStyles_Item_System_Int32_" data-uid="GrapeCity.Spreadsheet.IStyles.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Item.html#GrapeCity_Spreadsheet_IStyles_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Spreadsheet.IStyle.html">IStyle</a> object at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IStyles_Item_System_String_" data-uid="GrapeCity.Spreadsheet.IStyles.Item(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Item.html#GrapeCity_Spreadsheet_IStyles_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Spreadsheet.IStyle.html">IStyle</a> object with the specified name.</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_Spreadsheet_IStyles_Add_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.IStyles.Add(System.String,System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Add.html#GrapeCity_Spreadsheet_IStyles_Add_System_String_System_String_">Add(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new style and adds it to the list of styles that are available for the current workbook.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_IStyles_Merge_GrapeCity_Spreadsheet_IWorkbook_GrapeCity_Spreadsheet_YesNoCancel_" data-uid="GrapeCity.Spreadsheet.IStyles.Merge(GrapeCity.Spreadsheet.IWorkbook,GrapeCity.Spreadsheet.YesNoCancel)">
          <a class="xref" href="GrapeCity.Spreadsheet.IStyles.Merge.html#GrapeCity_Spreadsheet_IStyles_Merge_GrapeCity_Spreadsheet_IWorkbook_GrapeCity_Spreadsheet_YesNoCancel_">Merge(IWorkbook, YesNoCancel)</a>
        </td>
        <td class="markdown level1 summary"><p>Merges the styles from another workbook into the <a class="xref" href="GrapeCity.Spreadsheet.IStyles.html">IStyles</a> collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
