# GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection" class="text-break">HolidayCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of instances of the GrapeCity.Windows.InputMan.IHoliday,
such as GrapeCity.Windows.InputMan.Holiday, GrapeCity.Windows.InputMan.ForceHoliday
and GrapeCity.Windows.InputMan.ForceWorkday classes.</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</a>&gt;</div>
    <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NotifyCollection-1.html">NotifyCollection</a>&lt;<a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</a>&gt;</div>
    <div class="level3"><span class="xref">HolidayCollection</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</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>
  <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_HolidayCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class HolidayCollection : NotifyCollection&lt;IHoliday&gt;, IList&lt;IHoliday&gt;, ICollection&lt;IHoliday&gt;, IList, ICollection, IReadOnlyList&lt;IHoliday&gt;, IReadOnlyCollection&lt;IHoliday&gt;, IEnumerable&lt;IHoliday&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class HolidayCollection
    Inherits NotifyCollection(Of IHoliday)
    Implements IList(Of IHoliday), ICollection(Of IHoliday), IList, ICollection, IReadOnlyList(Of IHoliday), IReadOnlyCollection(Of IHoliday), IEnumerable(Of IHoliday), IEnumerable, INotifyCollectionChanged</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_Wpf_SpreadSheet_CellType_Editors_HolidayCollection__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection__ctor">HolidayCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.html">HolidayCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection__ctor_System_Collections_Generic_IEnumerable_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.#ctor(System.Collections.Generic.IEnumerable{GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday})">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection__ctor_System_Collections_Generic_IEnumerable_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__">HolidayCollection(IEnumerable&lt;IHoliday&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.html">HolidayCollection</a> object using
the specified settings.</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_CellType_Editors_HolidayCollection_GetTypeOfDay_System_DateTime_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.GetTypeOfDay(System.DateTime,GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday@)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.GetTypeOfDay.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_GetTypeOfDay_System_DateTime_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__">GetTypeOfDay(DateTime, out IHoliday)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the type of day for the specified date.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_InsertItem_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.InsertItem(System.Int32,GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.InsertItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_InsertItem_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday_">InsertItem(int, IHoliday)</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_HolidayCollection_InsertItems_System_Int32_System_Collections_Generic_IEnumerable_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.InsertItems(System.Int32,System.Collections.Generic.IEnumerable{GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday})">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.InsertItems.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_InsertItems_System_Int32_System_Collections_Generic_IEnumerable_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday__">InsertItems(int, IEnumerable&lt;IHoliday&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts some items into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_IsHoliday_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.IsHoliday(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.IsHoliday.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_IsHoliday_System_DateTime_">IsHoliday(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified date is a holiday.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.OnCollectionChanged.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the GrapeCity.Windows.InputMan.NotifyCollection&lt;T&gt;.CollectionChanged event with the provided arguments.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_RemoveItem_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.RemoveItem(System.Int32)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.RemoveItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the item at the specified index of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_SetItem_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.SetItem(System.Int32,GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.SetItem.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayCollection_SetItem_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday_">SetItem(int, IHoliday)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the element at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
