# GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection" class="text-break">SelectedDatesCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.html">SelectedDatesCollection</a> class, which is the set of the selected dates in a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.html">GcDropDownCalendar</a> control.</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>&gt;</div>
    <div class="level2"><span class="xref">SelectedDatesCollection</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class SelectedDatesCollection : Collection&lt;DateTime&gt;, IList&lt;DateTime&gt;, ICollection&lt;DateTime&gt;, IList, ICollection, IReadOnlyList&lt;DateTime&gt;, IReadOnlyCollection&lt;DateTime&gt;, IEnumerable&lt;DateTime&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class SelectedDatesCollection
    Inherits Collection(Of Date)
    Implements IList(Of Date), ICollection(Of Date), IList, ICollection, IReadOnlyList(Of Date), IReadOnlyCollection(Of Date), IEnumerable(Of Date), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <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_CellType_Editors_SelectedDatesCollection_AddRange_System_DateTime_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.AddRange(System.DateTime,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.AddRange.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_AddRange_System_DateTime_System_DateTime_">AddRange(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds all the dates in the specified range, which includes the first and last dates, to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_ClearItems" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.ClearItems">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.ClearItems.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_InsertItem_System_Int32_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.InsertItem(System.Int32,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.InsertItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_InsertItem_System_Int32_System_DateTime_">InsertItem(int, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_RemoveItem_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.RemoveItem(System.Int32)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.RemoveItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the item at the specified index from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_SetItem_System_Int32_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.SetItem(System.Int32,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.SetItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_SelectedDatesCollection_SetItem_System_Int32_System_DateTime_">SetItem(int, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the item at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_CellType_Editors_SelectedDatesCollection_CollectionChanged" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.CollectionChanged">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectedDatesCollection.CollectionChanged.html">CollectionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the items list of the collection has changed, or the collection is reset.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
