# C1.Schedule.StatusCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_StatusCollection" data-uid="C1.Schedule.StatusCollection" class="text-break">StatusCollection Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.StatusCollection.html">StatusCollection</a> is a collection of <a class="xref" href="C1.Schedule.Status.html">Status</a>
objects which represents all available statuses in C1Schedule object model.
By default it contains the set of predefined statuses.</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.Status.html">Status</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.guid">Guid</a>, <a class="xref" href="C1.Schedule.Status.html">Status</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.Schedule.C1ObservableKeyedCollection-2.html">C1ObservableKeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a>, <a class="xref" href="C1.Schedule.Status.html">Status</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Schedule.BaseCollection-1.html">BaseCollection</a>&lt;<a class="xref" href="C1.Schedule.Status.html">Status</a>&gt;</div>
    <div class="level5"><span class="xref">StatusCollection</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.Status.html">Status</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.Status.html">Status</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.Status.html">Status</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.Status.html">Status</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.Status.html">Status</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="C1.Schedule.html">C1.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.ScheduleCore.dll</h6>
  <h5 id="C1_Schedule_StatusCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StatusCollection : BaseCollection&lt;Status&gt;, IList&lt;Status&gt;, ICollection&lt;Status&gt;, IList, ICollection, IReadOnlyList&lt;Status&gt;, IReadOnlyCollection&lt;Status&gt;, IEnumerable&lt;Status&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StatusCollection
    Inherits BaseCollection(Of Status)
    Implements IList(Of Status), ICollection(Of Status), IList, ICollection, IReadOnlyList(Of Status), IReadOnlyCollection(Of Status), IEnumerable(Of Status), 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="C1_Schedule_StatusCollection__ctor" data-uid="C1.Schedule.StatusCollection.#ctor">
          <a class="xref" href="C1.Schedule.StatusCollection.-ctor.html#C1_Schedule_StatusCollection__ctor">StatusCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.StatusCollection.html">StatusCollection</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_StatusCollection_Item_C1_Schedule_StatusTypeEnum_" data-uid="C1.Schedule.StatusCollection.Item(C1.Schedule.StatusTypeEnum)">
          <a class="xref" href="C1.Schedule.StatusCollection.Item.html#C1_Schedule_StatusCollection_Item_C1_Schedule_StatusTypeEnum_">this[StatusTypeEnum]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Schedule.Status.html">Status</a> object specified by the appointment status type.
For custom statuses returns the first occurrence.
If there is no such <a class="xref" href="C1.Schedule.Status.html">Status</a> object in the collection, returns null.</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_StatusCollection_LoadDefaults" data-uid="C1.Schedule.StatusCollection.LoadDefaults">
          <a class="xref" href="C1.Schedule.StatusCollection.LoadDefaults.html#C1_Schedule_StatusCollection_LoadDefaults">LoadDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the collection to its default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_StatusCollection_RefreshDefaults" data-uid="C1.Schedule.StatusCollection.RefreshDefaults">
          <a class="xref" href="C1.Schedule.StatusCollection.RefreshDefaults.html#C1_Schedule_StatusCollection_RefreshDefaults">RefreshDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshes default values honoring current culture settings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
