# C1.Schedule.DayCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_DayCollection" data-uid="C1.Schedule.DayCollection" class="text-break">DayCollection Class
</h1>
  <div class="markdown level0 summary"><p>Collection of all days in the C1Schedule component.</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.Schedule.Day.html">Day</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2">KeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>, <a class="xref" href="C1.Schedule.Day.html">Day</a>&gt;</div>
    <div class="level3"><span class="xref">DayCollection</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.Schedule.Day.html">Day</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.Schedule.Day.html">Day</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.Schedule.Day.html">Day</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.Schedule.Day.html">Day</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.Schedule.Day.html">Day</a>&gt;</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="C1.Schedule.html">C1.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.ScheduleCore.dll</h6>
  <h5 id="C1_Schedule_DayCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DayCollection : KeyedCollection&lt;DateTime, Day&gt;, IList&lt;Day&gt;, ICollection&lt;Day&gt;, IList, ICollection, IReadOnlyList&lt;Day&gt;, IReadOnlyCollection&lt;Day&gt;, IEnumerable&lt;Day&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DayCollection
    Inherits KeyedCollection(Of Date, Day)
    Implements IList(Of Day), ICollection(Of Day), IList, ICollection, IReadOnlyList(Of Day), IReadOnlyCollection(Of Day), IEnumerable(Of Day), IEnumerable</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_Schedule_DayCollection_BoldedDates" data-uid="C1.Schedule.DayCollection.BoldedDates">
          <a class="xref" href="C1.Schedule.DayCollection.BoldedDates.html#C1_Schedule_DayCollection_BoldedDates">BoldedDates</a>
        </td>
        <td class="markdown level1 summary"><p>Returns collection of dates which have appointments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DayCollection_Item_System_DateTime_" data-uid="C1.Schedule.DayCollection.Item(System.DateTime)">
          <a class="xref" href="C1.Schedule.DayCollection.Item.html#C1_Schedule_DayCollection_Item_System_DateTime_">this[DateTime]</a>
        </td>
        <td class="markdown level1 summary"></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_Schedule_DayCollection_ClearItems" data-uid="C1.Schedule.DayCollection.ClearItems">
          <a class="xref" href="C1.Schedule.DayCollection.ClearItems.html#C1_Schedule_DayCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_DayCollection_GetFirstWeekDay_System_DateTime_" data-uid="C1.Schedule.DayCollection.GetFirstWeekDay(System.DateTime)">
          <a class="xref" href="C1.Schedule.DayCollection.GetFirstWeekDay.html#C1_Schedule_DayCollection_GetFirstWeekDay_System_DateTime_">GetFirstWeekDay(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the first day of week, containing specified date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DayCollection_GetKeyForItem_C1_Schedule_Day_" data-uid="C1.Schedule.DayCollection.GetKeyForItem(C1.Schedule.Day)">
          <a class="xref" href="C1.Schedule.DayCollection.GetKeyForItem.html#C1_Schedule_DayCollection_GetKeyForItem_C1_Schedule_Day_">GetKeyForItem(Day)</a>
        </td>
        <td class="markdown level1 summary"><p>Extracts the key from the specified element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DayCollection_GetLastWeekDay_System_DateTime_" data-uid="C1.Schedule.DayCollection.GetLastWeekDay(System.DateTime)">
          <a class="xref" href="C1.Schedule.DayCollection.GetLastWeekDay.html#C1_Schedule_DayCollection_GetLastWeekDay_System_DateTime_">GetLastWeekDay(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the last day of week, containing specified date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DayCollection_RemoveItem_System_Int32_" data-uid="C1.Schedule.DayCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Schedule.DayCollection.RemoveItem.html#C1_Schedule_DayCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"></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="C1_Schedule_DayCollection_BoldedDatesChanged" data-uid="C1.Schedule.DayCollection.BoldedDatesChanged">
          <a class="xref" href="C1.Schedule.DayCollection.BoldedDatesChanged.html">BoldedDatesChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Schedule.DayCollection.BoldedDates.html#C1_Schedule_DayCollection_BoldedDates">BoldedDates</a> collection has been changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
