# C1.Schedule.AppointmentList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_AppointmentList" data-uid="C1.Schedule.AppointmentList" class="text-break">AppointmentList Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> is a sortable collection of
<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects.</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.Appointment.html">Appointment</a>&gt;</div>
    <div class="level2"><span class="xref">AppointmentList</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.Appointment.html">Appointment</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.Appointment.html">Appointment</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.Appointment.html">Appointment</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.Appointment.html">Appointment</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.Appointment.html">Appointment</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_AppointmentList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AppointmentList : Collection&lt;Appointment&gt;, IList&lt;Appointment&gt;, ICollection&lt;Appointment&gt;, IList, ICollection, IReadOnlyList&lt;Appointment&gt;, IReadOnlyCollection&lt;Appointment&gt;, IEnumerable&lt;Appointment&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AppointmentList
    Inherits Collection(Of Appointment)
    Implements IList(Of Appointment), ICollection(Of Appointment), IList, ICollection, IReadOnlyList(Of Appointment), IReadOnlyCollection(Of Appointment), IEnumerable(Of Appointment), IEnumerable</code></pre>
  </div>
  <h5 id="C1_Schedule_AppointmentList_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> is not guaranteed to be sorted.
You must sort the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> before performing operations
that require the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> to be sorted.</p>
</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="C1_Schedule_AppointmentList__ctor_C1_Schedule_AppointmentCollection_" data-uid="C1.Schedule.AppointmentList.#ctor(C1.Schedule.AppointmentCollection)">
          <a class="xref" href="C1.Schedule.AppointmentList.-ctor.html#C1_Schedule_AppointmentList__ctor_C1_Schedule_AppointmentCollection_">AppointmentList(AppointmentCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes the new instance of the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> class.</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_Schedule_AppointmentList_Sort" data-uid="C1.Schedule.AppointmentList.Sort">
          <a class="xref" href="C1.Schedule.AppointmentList.Sort.html#C1_Schedule_AppointmentList_Sort">Sort()</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in the entire AppointmentList using the default comparer
(by the Appointment.Start value).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentList_Sort_System_Collections_Generic_IComparer_C1_Schedule_Appointment__" data-uid="C1.Schedule.AppointmentList.Sort(System.Collections.Generic.IComparer{C1.Schedule.Appointment})">
          <a class="xref" href="C1.Schedule.AppointmentList.Sort.html#C1_Schedule_AppointmentList_Sort_System_Collections_Generic_IComparer_C1_Schedule_Appointment__">Sort(IComparer&lt;Appointment&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in the entire AppointmentList using
the specified comparer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentList_Sort_System_Comparison_C1_Schedule_Appointment__" data-uid="C1.Schedule.AppointmentList.Sort(System.Comparison{C1.Schedule.Appointment})">
          <a class="xref" href="C1.Schedule.AppointmentList.Sort.html#C1_Schedule_AppointmentList_Sort_System_Comparison_C1_Schedule_Appointment__">Sort(Comparison&lt;Appointment&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in the entire AppointmentList using
the specified System.Comparison.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentList_Sort_System_Int32_System_Int32_System_Collections_Generic_IComparer_C1_Schedule_Appointment__" data-uid="C1.Schedule.AppointmentList.Sort(System.Int32,System.Int32,System.Collections.Generic.IComparer{C1.Schedule.Appointment})">
          <a class="xref" href="C1.Schedule.AppointmentList.Sort.html#C1_Schedule_AppointmentList_Sort_System_Int32_System_Int32_System_Collections_Generic_IComparer_C1_Schedule_Appointment__">Sort(int, int, IComparer&lt;Appointment&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the elements in a range of elements in AppointmentList using
the specified comparer.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
