# C1.WPF.FlexGrid.SheetCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_SheetCollection" data-uid="C1.WPF.FlexGrid.SheetCollection" class="text-break">SheetCollection Class
</h1>
  <div class="markdown level0 summary"><p>Class that managers the list of Sheet items associated with a grid and provides
methods for adding, removing, deleting, and renaming sheets.</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="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div class="level3"><span class="xref">SheetCollection</span></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;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexSheet.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_SheetCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SheetCollection : ObservableCollection&lt;Sheet&gt;, IList&lt;Sheet&gt;, ICollection&lt;Sheet&gt;, IList, ICollection, IReadOnlyList&lt;Sheet&gt;, IReadOnlyCollection&lt;Sheet&gt;, IEnumerable&lt;Sheet&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SheetCollection
    Inherits ObservableCollection(Of Sheet)
    Implements IList(Of Sheet), ICollection(Of Sheet), IList, ICollection, IReadOnlyList(Of Sheet), IReadOnlyCollection(Of Sheet), IEnumerable(Of Sheet), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</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="C1_WPF_FlexGrid_SheetCollection_Item_System_String_" data-uid="C1.WPF.FlexGrid.SheetCollection.Item(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.Item.html#C1_WPF_FlexGrid_SheetCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves a sheet by name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectedIndex" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectedIndex">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectedIndex.html#C1_WPF_FlexGrid_SheetCollection_SelectedIndex">SelectedIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the currently selected sheet in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectedSheet" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectedSheet">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectedSheet.html#C1_WPF_FlexGrid_SheetCollection_SelectedSheet">SelectedSheet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the currently selected sheet.</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="C1_WPF_FlexGrid_SheetCollection_Contains_System_String_" data-uid="C1.WPF.FlexGrid.SheetCollection.Contains(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.Contains.html#C1_WPF_FlexGrid_SheetCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the collection contains a sheet with a given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_DeleteSheet" data-uid="C1.WPF.FlexGrid.SheetCollection.DeleteSheet">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.DeleteSheet.html#C1_WPF_FlexGrid_SheetCollection_DeleteSheet">DeleteSheet()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes the current sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_HideSheet" data-uid="C1.WPF.FlexGrid.SheetCollection.HideSheet">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.HideSheet.html#C1_WPF_FlexGrid_SheetCollection_HideSheet">HideSheet()</a>
        </td>
        <td class="markdown level1 summary"><p>Hides the current sheet from view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_IndexOf_System_String_" data-uid="C1.WPF.FlexGrid.SheetCollection.IndexOf(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.IndexOf.html#C1_WPF_FlexGrid_SheetCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the sheet with a given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_InsertSheet_System_Boolean_" data-uid="C1.WPF.FlexGrid.SheetCollection.InsertSheet(System.Boolean)">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.InsertSheet.html#C1_WPF_FlexGrid_SheetCollection_InsertSheet_System_Boolean_">InsertSheet(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a new sheet at the currently selected position or appends it to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.WPF.FlexGrid.SheetCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.OnCollectionChanged.html#C1_WPF_FlexGrid_SheetCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Synchronize tabs control with this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_RenameSheet" data-uid="C1.WPF.FlexGrid.SheetCollection.RenameSheet">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.RenameSheet.html#C1_WPF_FlexGrid_SheetCollection_RenameSheet">RenameSheet()</a>
        </td>
        <td class="markdown level1 summary"><p>Puts the current sheet in edit mode so the user can rename it.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectFirst" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectFirst">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectFirst.html#C1_WPF_FlexGrid_SheetCollection_SelectFirst">SelectFirst()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the first visible sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectLast" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectLast">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectLast.html#C1_WPF_FlexGrid_SheetCollection_SelectLast">SelectLast()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the last visible sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectNext" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectNext">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectNext.html#C1_WPF_FlexGrid_SheetCollection_SelectNext">SelectNext()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the next visible sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_SelectPrev" data-uid="C1.WPF.FlexGrid.SheetCollection.SelectPrev">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.SelectPrev.html#C1_WPF_FlexGrid_SheetCollection_SelectPrev">SelectPrev()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the previous visible sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_SheetCollection_UnhideSheets" data-uid="C1.WPF.FlexGrid.SheetCollection.UnhideSheets">
          <a class="xref" href="C1.WPF.FlexGrid.SheetCollection.UnhideSheets.html#C1_WPF_FlexGrid_SheetCollection_UnhideSheets">UnhideSheets()</a>
        </td>
        <td class="markdown level1 summary"><p>Unhides all hidden sheets.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
