# GrapeCity.Win.Spread.InputMan.CellType.StyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection" class="text-break">StyleCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> objects.</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.Win.Spread.InputMan.CellType.BaseKeyCollection.html">BaseKeyCollection</a></div>
    <div class="level2"><span class="xref">StyleCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.html">GrapeCity.Win.Spread.InputMan.CellType</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Win.PluginInputMan.dll</h6>
  <h5 id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(StylesConverter))]
public class StyleCollection : BaseKeyCollection, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(StylesConverter))&gt;
Public Class StyleCollection
    Inherits BaseKeyCollection
    Implements ICollection, IEnumerable</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_Win_Spread_InputMan_CellType_StyleCollection__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.#ctor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection__ctor">StyleCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection__ctor_System_String___GrapeCity_Win_Spread_InputMan_CellType_Style___" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.#ctor(System.String[],GrapeCity.Win.Spread.InputMan.CellType.Style[])">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection__ctor_System_String___GrapeCity_Win_Spread_InputMan_CellType_Style___">StyleCollection(string[], Style[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</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_Win_Spread_InputMan_CellType_StyleCollection_Item_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Item.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Item_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Item.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> with the specified key.</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_Win_Spread_InputMan_CellType_StyleCollection_Add_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Add(System.String)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Add.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new Style with the specified key into the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Add_System_String_GrapeCity_Win_Spread_InputMan_CellType_Style_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Add(System.String,GrapeCity.Win.Spread.InputMan.CellType.Style)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Add.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Add_System_String_GrapeCity_Win_Spread_InputMan_CellType_Style_">Add(string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an item with the specified key and value into the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_AddRange_System_String___GrapeCity_Win_Spread_InputMan_CellType_Style___" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.AddRange(System.String[],GrapeCity.Win.Spread.InputMan.CellType.Style[])">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.AddRange.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_AddRange_System_String___GrapeCity_Win_Spread_InputMan_CellType_Style___">AddRange(string[], Style[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified key array and <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> array into the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Clear" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Clear">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Clear.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all elements from the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_Style___" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.CopyTo(GrapeCity.Win.Spread.InputMan.CellType.Style[])">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.CopyTo.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_Style___">CopyTo(Style[])</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the items of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a> to a compatible one-dimensional array of type <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a>, starting from the first index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_Style___System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.CopyTo(GrapeCity.Win.Spread.InputMan.CellType.Style[],System.Int32)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.CopyTo.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_Style___System_Int32_">CopyTo(Style[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the items of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a> to a compatible one-dimensional array of type <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a>, starting at the specified zero-based index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Insert_System_Int32_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Insert(System.Int32,System.String)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Insert.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Insert_System_Int32_System_String_">Insert(int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Style.html">Style</a> with the specified key into the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Insert_System_Int32_System_String_GrapeCity_Win_Spread_InputMan_CellType_Style_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Insert(System.Int32,System.String,GrapeCity.Win.Spread.InputMan.CellType.Style)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Insert.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Insert_System_Int32_System_String_GrapeCity_Win_Spread_InputMan_CellType_Style_">Insert(int, string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item with the specified key and value into the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_OnCollectionChanged_System_ComponentModel_CollectionChangeEventArgs_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.OnCollectionChanged(System.ComponentModel.CollectionChangeEventArgs)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.OnCollectionChanged.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_OnCollectionChanged_System_ComponentModel_CollectionChangeEventArgs_">OnCollectionChanged(CollectionChangeEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a> object has changed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Remove_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Remove(System.String)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Remove.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the element with the specified key from the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_RemoveAt_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.RemoveAt(System.Int32)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.RemoveAt.html#GrapeCity_Win_Spread_InputMan_CellType_StyleCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the element with the specified index from the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.html">StyleCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
