# GrapeCity.Documents.Excel.IStyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_IStyleCollection" data-uid="GrapeCity.Documents.Excel.IStyleCollection" class="text-break">IStyleCollection Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of all the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a> objects in the specified or active workbook.</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_IStyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IStyleCollection : IEnumerable&lt;IStyle&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IStyleCollection
    Inherits IEnumerable(Of IStyle), IEnumerable</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_IStyleCollection_Count" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Count.html#GrapeCity_Documents_Excel_IStyleCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of objects in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyleCollection_Item_System_Int32_" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Item.html#GrapeCity_Documents_Excel_IStyleCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a> object from a collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyleCollection_Item_System_String_" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Item.html#GrapeCity_Documents_Excel_IStyleCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a> object from a collection.</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_IStyleCollection_Add_System_String_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Add(System.String,GrapeCity.Documents.Excel.IRange)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Add.html#GrapeCity_Documents_Excel_IStyleCollection_Add_System_String_GrapeCity_Documents_Excel_IRange_">Add(string, IRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a> and adds it to the list of styles that are available for the current <a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.html">IWorkbook</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyleCollection_Add_System_String_GrapeCity_Documents_Excel_IStyle_" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Add(System.String,GrapeCity.Documents.Excel.IStyle)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Add.html#GrapeCity_Documents_Excel_IStyleCollection_Add_System_String_GrapeCity_Documents_Excel_IStyle_">Add(string, IStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Excel.IStyle.html">IStyle</a> and adds it to the list of styles that are available for the current <a class="xref" href="GrapeCity.Documents.Excel.IWorkbook.html">IWorkbook</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IStyleCollection_Contains_System_String_" data-uid="GrapeCity.Documents.Excel.IStyleCollection.Contains(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.Contains.html#GrapeCity_Documents_Excel_IStyleCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the style name is contained in <a class="xref" href="GrapeCity.Documents.Excel.IStyleCollection.html">IStyleCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
