# GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1" class="text-break">XamlCollection&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection for the T.</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">XamlCollection&lt;T&gt;</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.AlternatingStyles.html">AlternatingStyles</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellStyleInfoCollection.html">CellStyleInfoCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.ColumnInfoCollection.html">ColumnInfoCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.GradientColorStopInfoCollection.html">GradientColorStopInfoCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.NameInfoCollection.html">NameInfoCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.SelectionInfoCollection.html">SelectionInfoCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.SortFieldInfoCollection.html">SortFieldInfoCollection</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <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.Wpf.SpreadSheet.Xaml.html">GrapeCity.Wpf.SpreadSheet.Xaml</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class XamlCollection&lt;T&gt; : IList&lt;T&gt;, ICollection&lt;T&gt;, IEnumerable&lt;T&gt;, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class XamlCollection(Of T)
    Implements IList(Of T), ICollection(Of T), IEnumerable(Of T), IList, ICollection, IEnumerable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></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_Wpf_SpreadSheet_Xaml_XamlCollection_1_Count" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.Count">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.Count.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of sheets in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Item_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.Item.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the sheet at the special index.</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_Wpf_SpreadSheet_Xaml_XamlCollection_1_Add" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.Add">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.Add.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a sheet into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Clear" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.Clear">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.Clear.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_IndexOf__0_" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.IndexOf(`0)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.IndexOf.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_IndexOf__0_">IndexOf(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of a sheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_RemoveAt_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection`1.RemoveAt(System.Int32)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Xaml.XamlCollection-1.RemoveAt.html#GrapeCity_Wpf_SpreadSheet_Xaml_XamlCollection_1_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a sheet from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
