| C1.Win.C1Schedule.4 Assembly > C1.Win.C1Schedule.UI Namespace : PaletteType Enumeration |
'Declaration Public Enum PaletteType Inherits System.Enum
public enum PaletteType : System.Enum
| Member | Description |
|---|---|
| Custom | Use this type to define your own palettes. Palette.WorkHour field should always contain unique System.Drawing.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 C1.Win.C1Schedule.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. |
System.Object
System.ValueType
System.Enum
C1.Win.C1Schedule.UI.PaletteType