[]
        
(Showing Draft Content)

C1.Win.C1Schedule.UI.PaletteType

PaletteType Enum

PaletteType Enumeration specifies the type of Palette object. This type defines the behavior of palette.

Namespace: C1.Win.C1Schedule.UI
Assembly: C1.Win.C1Schedule.4.8.dll
Syntax
public enum PaletteType

Fields

Name Description
Custom

Use this type to define your own palettes. WorkHour field should always contain unique Color value before adding the Palette object to the Palettes collection. The next example shows how to create custom palettes and attach them to the C1Schedule control.

// 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;
Office2007

Office 2007 palette includes back and border colors of free and working hours and days, day headers, grid borders and calendar tabs.

Office2010

Office 2010 palette includes back and border colors of free and working hours and days, day headers, grid borders and calendar tabs.

Office2016

Office 2016 palette includes accent color to use in calendar headers and additional darker color for current day.

Office2016Dark

Office 2016 dark palette includes accent color to use in calendar headers and additional darker color for current day.