Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.8 Assembly / C1.Win.C1Schedule.UI Namespace / PaletteType Enumeration

In This Topic
    PaletteType Enumeration
    In This Topic
    PaletteType Enumeration specifies the type of Palette object. This type defines the behavior of palette.
    Syntax
    'Declaration
     
    Public Enum PaletteType 
       Inherits System.Enum
    public enum PaletteType : System.Enum 
    Members
    MemberDescription
    CustomUse 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;
    Office2007Office 2007 palette includes back and border colors of free and working hours and days, day headers, grid borders and calendar tabs.
    Office2010Office 2010 palette includes back and border colors of free and working hours and days, day headers, grid borders and calendar tabs.
    Office2016Office 2016 palette includes accent color to use in calendar headers and additional darker color for current day.
    Office2016DarkOffice 2016 dark palette includes accent color to use in calendar headers and additional darker color for current day.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Win.C1Schedule.UI.PaletteType

    See Also