# C1.Win.Schedule.UI.Palette

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Schedule_UI_Palette" data-uid="C1.Win.Schedule.UI.Palette" class="text-break">Palette Class
</h1>
  <div class="markdown level0 summary"><p><a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> Class represents a set of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a>
values which are used for displaying <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a>.
<remarks>
The default value for each color is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
The <a class="xref" href="C1.Win.Schedule.UI.Palette.AlternateMonth.html">AlternateMonth</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.
For other fields <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a> is allowed. In such case control
uses the corresponding color from the theme definition.
</remarks></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"><span class="xref">Palette</span></div>
      <div class="level2"><a class="xref" href="C1.Win.Schedule.UI.PaletteOffice2016.html">PaletteOffice2016</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_Palette_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Palette</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Palette</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_Palette__ctor_C1_Win_Schedule_UI_PaletteType_" data-uid="C1.Win.Schedule.UI.Palette.#ctor(C1.Win.Schedule.UI.PaletteType)">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.-ctor.html#C1_Win_Schedule_UI_Palette__ctor_C1_Win_Schedule_UI_PaletteType_">Palette(PaletteType)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object.</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_Win_Schedule_UI_Palette_AlternateMonth" data-uid="C1.Win.Schedule.UI.Palette.AlternateMonth">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.AlternateMonth.html">AlternateMonth</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying background
of alternate month days.
For Office 2007 and 2010 palettes this field should always contain unique
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value.
For other palettes this field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_Border" data-uid="C1.Win.Schedule.UI.Palette.Border">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.Border.html">Border</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying day borders.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_DayHeaderBackground" data-uid="C1.Win.Schedule.UI.Palette.DayHeaderBackground">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.DayHeaderBackground.html">DayHeaderBackground</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying day header background.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_DayHeaderBackground2" data-uid="C1.Win.Schedule.UI.Palette.DayHeaderBackground2">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.DayHeaderBackground2.html">DayHeaderBackground2</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying day header gradient background.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_DayHeaderBorder" data-uid="C1.Win.Schedule.UI.Palette.DayHeaderBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.DayHeaderBorder.html">DayHeaderBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying day header border.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_FreeHour" data-uid="C1.Win.Schedule.UI.Palette.FreeHour">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.FreeHour.html">FreeHour</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying background
of free hours.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_FreeHourBorder" data-uid="C1.Win.Schedule.UI.Palette.FreeHourBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.FreeHourBorder.html">FreeHourBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying free hours horizontal
dark border.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_FreeHourLightBorder" data-uid="C1.Win.Schedule.UI.Palette.FreeHourLightBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.FreeHourLightBorder.html">FreeHourLightBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying free hours horizontal
light border.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use the <a class="xref" href="C1.Win.Schedule.UI.Palette.FreeHourBorder.html">FreeHourBorder</a> value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_MonthGridBorder" data-uid="C1.Win.Schedule.UI.Palette.MonthGridBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.MonthGridBorder.html">MonthGridBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying month grid
header border inside tabs if <a class="xref" href="C1.Win.Schedule.UI.ScheduleTheme.GroupTabStyle.html#C1_Win_Schedule_UI_ScheduleTheme_GroupTabStyle">GroupTabStyle</a> is <a class="xref" href="C1.Win.Schedule.GroupTabStyle.html#C1_Win_Schedule_GroupTabStyle_Office2007">Office2007</a>.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_MonthGridText" data-uid="C1.Win.Schedule.UI.Palette.MonthGridText">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.MonthGridText.html">MonthGridText</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying month grid
header text inside tabs if <a class="xref" href="C1.Win.Schedule.UI.ScheduleTheme.GroupTabStyle.html#C1_Win_Schedule_UI_ScheduleTheme_GroupTabStyle">GroupTabStyle</a> is <a class="xref" href="C1.Win.Schedule.GroupTabStyle.html#C1_Win_Schedule_GroupTabStyle_Office2007">Office2007</a>.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_SelectedDay" data-uid="C1.Win.Schedule.UI.Palette.SelectedDay">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.SelectedDay.html">SelectedDay</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying background
of the selected day.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_SelectedSlot" data-uid="C1.Win.Schedule.UI.Palette.SelectedSlot">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.SelectedSlot.html">SelectedSlot</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying background
of the selected time slots.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use back color of the
<a class="xref" href="C1.Win.Schedule.UI.ScheduleTheme.MonthDayHeaderSelected.html#C1_Win_Schedule_UI_ScheduleTheme_MonthDayHeaderSelected">MonthDayHeaderSelected</a> style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_WorkHour" data-uid="C1.Win.Schedule.UI.Palette.WorkHour">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.WorkHour.html">WorkHour</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying background
of working hours.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_WorkHourBorder" data-uid="C1.Win.Schedule.UI.Palette.WorkHourBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.WorkHourBorder.html">WorkHourBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying working hours
horizontal dark border.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value from the
theme definition.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_WorkHourLightBorder" data-uid="C1.Win.Schedule.UI.Palette.WorkHourLightBorder">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.WorkHourLightBorder.html">WorkHourLightBorder</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used for displaying working hours
horizontal light border.
This field can be <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Empty</a>.
In such case control will use the <a class="xref" href="C1.Win.Schedule.UI.Palette.WorkHourBorder.html">WorkHourBorder</a> value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette__theme" data-uid="C1.Win.Schedule.UI.Palette._theme">
          <a class="xref" href="C1.Win.Schedule.UI.Palette._theme.html">_theme</a>
        </td>
        <td class="markdown level1 summary"></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_Win_Schedule_UI_Palette_KeyColor" data-uid="C1.Win.Schedule.UI.Palette.KeyColor">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.KeyColor.html#C1_Win_Schedule_UI_Palette_KeyColor">KeyColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the key <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value for the current palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_PaletteType" data-uid="C1.Win.Schedule.UI.Palette.PaletteType">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.PaletteType.html#C1_Win_Schedule_UI_Palette_PaletteType">PaletteType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.Schedule.UI.Palette.PaletteType.html#C1_Win_Schedule_UI_Palette_PaletteType">PaletteType</a> value.</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_Win_Schedule_UI_Palette_CreateOffice2007Palette_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Schedule.UI.Palette.CreateOffice2007Palette(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.CreateOffice2007Palette.html#C1_Win_Schedule_UI_Palette_CreateOffice2007Palette_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_">CreateOffice2007Palette(Color, Color, Color, Color, Color, Color, Color, Color, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object of
<a class="xref" href="C1.Win.Schedule.UI.PaletteType.html#C1_Win_Schedule_UI_PaletteType_Office2007">Office2007</a> type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_CreateOffice2010Palette_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Schedule.UI.Palette.CreateOffice2010Palette(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.CreateOffice2010Palette.html#C1_Win_Schedule_UI_Palette_CreateOffice2010Palette_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_">CreateOffice2010Palette(Color, Color, Color, Color, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object of
<a class="xref" href="C1.Win.Schedule.UI.PaletteType.html#C1_Win_Schedule_UI_PaletteType_Office2010">Office2010</a> type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_Palette_UpdateSlotStyles_C1_Win_Schedule_UI_ScheduleTheme_" data-uid="C1.Win.Schedule.UI.Palette.UpdateSlotStyles(C1.Win.Schedule.UI.ScheduleTheme)">
          <a class="xref" href="C1.Win.Schedule.UI.Palette.UpdateSlotStyles.html#C1_Win_Schedule_UI_Palette_UpdateSlotStyles_C1_Win_Schedule_UI_ScheduleTheme_">UpdateSlotStyles(ScheduleTheme)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
