'Declaration Public Enum PaletteType Inherits System.Enum
public enum PaletteType : System.Enum
'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. |
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. |
System.Object
System.ValueType
System.Enum
C1.Win.C1Schedule.UI.PaletteType