# C1.Win.Schedule.UI.Palettes

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Schedule_UI_Palettes" data-uid="C1.Win.Schedule.UI.Palettes" class="text-break">Palettes Class
</h1>
  <div class="markdown level0 summary"><p><a class="xref" href="C1.Win.Schedule.UI.Palettes.html">Palettes</a> Class represents a collection of available color
palettes for the <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> visual style.
<remarks><p><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component uses this collection
to switch currently used palettes or to show multiple schedules
at the same time.</p></remarks></p>
<p>The key of collection is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is shown 
in the <a class="xref" href="C1.Win.Schedule.Forms.PaletteForm.html">PaletteForm</a> form.</p>
<p>For Office 2007 palettes key is a color of alternate month days,
all-day area and dark horizontal borders in the day view.</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.Win.Schedule.UI.Palette.html">Palette</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.drawing.color">Color</a>, <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a>&gt;</div>
    <div class="level3"><span class="xref">Palettes</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.Win.Schedule.UI.Palette.html">Palette</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.Win.Schedule.UI.Palette.html">Palette</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.Win.Schedule.UI.Palette.html">Palette</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.Win.Schedule.UI.Palette.html">Palette</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.Win.Schedule.UI.Palette.html">Palette</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.Win.Schedule.UI.html">C1.Win.Schedule.UI</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Schedule.10.dll</h6>
  <h5 id="C1_Win_Schedule_UI_Palettes_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Palettes : KeyedCollection&lt;Color, Palette&gt;, IList&lt;Palette&gt;, ICollection&lt;Palette&gt;, IList, ICollection, IReadOnlyList&lt;Palette&gt;, IReadOnlyCollection&lt;Palette&gt;, IEnumerable&lt;Palette&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Palettes
    Inherits KeyedCollection(Of Color, Palette)
    Implements IList(Of Palette), ICollection(Of Palette), IList, ICollection, IReadOnlyList(Of Palette), IReadOnlyCollection(Of Palette), IEnumerable(Of Palette), IEnumerable</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_Win_Schedule_UI_Palettes__ctor" data-uid="C1.Win.Schedule.UI.Palettes.#ctor">
          <a class="xref" href="C1.Win.Schedule.UI.Palettes.-ctor.html#C1_Win_Schedule_UI_Palettes__ctor">Palettes()</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_Win_Schedule_UI_Palettes_GetKeyForItem_C1_Win_Schedule_UI_Palette_" data-uid="C1.Win.Schedule.UI.Palettes.GetKeyForItem(C1.Win.Schedule.UI.Palette)">
          <a class="xref" href="C1.Win.Schedule.UI.Palettes.GetKeyForItem.html#C1_Win_Schedule_UI_Palettes_GetKeyForItem_C1_Win_Schedule_UI_Palette_">GetKeyForItem(Palette)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the key color for <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object
accordingly to the value of it's <a class="xref" href="C1.Win.Schedule.UI.Palette.PaletteType.html#C1_Win_Schedule_UI_Palette_PaletteType">PaletteType</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
