# C1.Win.Schedule.UI.PaletteType

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Win_Schedule_UI_PaletteType" data-uid="C1.Win.Schedule.UI.PaletteType" class="text-break">PaletteType Enum
</h1>
  <div class="markdown level0 summary"><p><a class="xref" href="C1.Win.Schedule.UI.PaletteType.html">PaletteType</a> Enumeration specifies the type
of <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object.
This type defines the behavior of palette.</p>
</div>
  <div class="markdown level0 conceptual"></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_PaletteType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum PaletteType</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum PaletteType</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Win_Schedule_UI_PaletteType_Custom">Custom</td>
        <td><p>Use this type to define your own palettes.
<remarks><a class="xref" href="C1.Win.Schedule.UI.Palette.WorkHour.html">WorkHour</a> field should always contain
unique <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value before adding the <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a>
object to the <a class="xref" href="C1.Win.Schedule.UI.Palettes.html">Palettes</a> collection.</remarks>
<example>
The next example shows how to create custom palettes and attach them to
the <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> control.</example></p>
<pre><code class="lang-csharp">// Clear default palettes.
c1Schedule.Theme.Palettes.Clear();
// Create new palette.
Palette pal = new Palette(PaletteType.Custom);
// Set work hour color and leave all other colors empty.
pal.WorkHour = Color.Red;
// Add palette to the theme palettes.
c1Schedule.Theme.Palettes.Add(pal);
pal = new Palette(PaletteType.Custom);
pal.WorkHour = Color.Yellow;
c1Schedule.Theme.Palettes.Add(pal);
pal = new Palette(PaletteType.Custom);
pal.WorkHour = Color.Green;
c1Schedule.Theme.Palettes.Add(pal);
// Select palette in control.
c1Schedule.Theme.CurrentPalette = Color.Yellow;</code></pre>

</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_PaletteType_Office2007">Office2007</td>
        <td><p>Office 2007 palette includes back and border colors
of free and working hours and days, day headers, grid borders
and calendar tabs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_PaletteType_Office2010">Office2010</td>
        <td><p>Office 2010 palette includes back and border colors
of free and working hours and days, day headers, grid borders
and calendar tabs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_PaletteType_Office2016">Office2016</td>
        <td><p>Office 2016 palette includes accent color to use in calendar headers and additional darker color for current day.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_PaletteType_Office2016Dark">Office2016Dark</td>
        <td><p>Office 2016 dark palette includes accent color to use in calendar headers and additional darker color for current day.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
