# C1.Schedule.CategoryCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_CategoryCollection" data-uid="C1.Schedule.CategoryCollection" class="text-break">CategoryCollection Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.CategoryCollection.html">CategoryCollection</a> is a collection of <a class="xref" href="C1.Schedule.Category.html">Category</a>
objects which represents all available categories in C1Schedule object model.
By default it contains the set of predefined categories.</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.Category.html">Category</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.Category.html">Category</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.Category.html">Category</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Schedule.BaseCollection-1.html">BaseCollection</a>&lt;<a class="xref" href="C1.Schedule.Category.html">Category</a>&gt;</div>
    <div class="level5"><span class="xref">CategoryCollection</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.Category.html">Category</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.Category.html">Category</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.Category.html">Category</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.Category.html">Category</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.Category.html">Category</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_CategoryCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CategoryCollection : BaseCollection&lt;Category&gt;, IList&lt;Category&gt;, ICollection&lt;Category&gt;, IList, ICollection, IReadOnlyList&lt;Category&gt;, IReadOnlyCollection&lt;Category&gt;, IEnumerable&lt;Category&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CategoryCollection
    Inherits BaseCollection(Of Category)
    Implements IList(Of Category), ICollection(Of Category), IList, ICollection, IReadOnlyList(Of Category), IReadOnlyCollection(Of Category), IEnumerable(Of Category), 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_CategoryCollection__ctor" data-uid="C1.Schedule.CategoryCollection.#ctor">
          <a class="xref" href="C1.Schedule.CategoryCollection.-ctor.html#C1_Schedule_CategoryCollection__ctor">CategoryCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.CategoryCollection.html">CategoryCollection</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_CategoryCollection_GetDefaults" data-uid="C1.Schedule.CategoryCollection.GetDefaults">
          <a class="xref" href="C1.Schedule.CategoryCollection.GetDefaults.html#C1_Schedule_CategoryCollection_GetDefaults">GetDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the list of predefined categories.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_CategoryCollection_LoadDefaults" data-uid="C1.Schedule.CategoryCollection.LoadDefaults">
          <a class="xref" href="C1.Schedule.CategoryCollection.LoadDefaults.html#C1_Schedule_CategoryCollection_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_CategoryCollection_RefreshDefaults" data-uid="C1.Schedule.CategoryCollection.RefreshDefaults">
          <a class="xref" href="C1.Schedule.CategoryCollection.RefreshDefaults.html#C1_Schedule_CategoryCollection_RefreshDefaults">RefreshDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshes default values honoring current culture settings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
