# C1.Schedule.LabelCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_LabelCollection" data-uid="C1.Schedule.LabelCollection" class="text-break">LabelCollection Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.LabelCollection.html">LabelCollection</a> is a collection of <a class="xref" href="C1.Schedule.Label.html">Label</a>
objects which represents all available labels in C1Schedule object model.</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.Label.html">Label</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.Label.html">Label</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.Label.html">Label</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Schedule.BaseCollection-1.html">BaseCollection</a>&lt;<a class="xref" href="C1.Schedule.Label.html">Label</a>&gt;</div>
    <div class="level5"><span class="xref">LabelCollection</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.Label.html">Label</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.Label.html">Label</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.Label.html">Label</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.Label.html">Label</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.Label.html">Label</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_LabelCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LabelCollection : BaseCollection&lt;Label&gt;, IList&lt;Label&gt;, ICollection&lt;Label&gt;, IList, ICollection, IReadOnlyList&lt;Label&gt;, IReadOnlyCollection&lt;Label&gt;, IEnumerable&lt;Label&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LabelCollection
    Inherits BaseCollection(Of Label)
    Implements IList(Of Label), ICollection(Of Label), IList, ICollection, IReadOnlyList(Of Label), IReadOnlyCollection(Of Label), IEnumerable(Of Label), IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <h5 id="C1_Schedule_LabelCollection_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>By default it contains the following set of predefined labels:</p>
<ul><li><span class="term"></span>None</li><li><span class="term"></span>Important</li><li><span class="term"></span>Business</li><li><span class="term"></span>Personal</li><li><span class="term"></span>Vacation</li><li><span class="term"></span>Must Attend</li><li><span class="term"></span>Deadline</li><li><span class="term"></span>Travel Required</li><li><span class="term"></span>Needs Preparation</li><li><span class="term"></span>Birthday</li><li><span class="term"></span>Anniversary</li><li><span class="term"></span>Phone Call</li></ul>
</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_LabelCollection__ctor" data-uid="C1.Schedule.LabelCollection.#ctor">
          <a class="xref" href="C1.Schedule.LabelCollection.-ctor.html#C1_Schedule_LabelCollection__ctor">LabelCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.LabelCollection.html">LabelCollection</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_LabelCollection_NoneLabelId" data-uid="C1.Schedule.LabelCollection.NoneLabelId">
          <a class="xref" href="C1.Schedule.LabelCollection.NoneLabelId.html">NoneLabelId</a>
        </td>
        <td class="markdown level1 summary"><p>Defines Id of the None label.</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_LabelCollection_LoadDefaults" data-uid="C1.Schedule.LabelCollection.LoadDefaults">
          <a class="xref" href="C1.Schedule.LabelCollection.LoadDefaults.html#C1_Schedule_LabelCollection_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_LabelCollection_RefreshDefaults" data-uid="C1.Schedule.LabelCollection.RefreshDefaults">
          <a class="xref" href="C1.Schedule.LabelCollection.RefreshDefaults.html#C1_Schedule_LabelCollection_RefreshDefaults">RefreshDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshes default values honoring current culture settings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
