[]
        
(Showing Draft Content)

C1.Win.Schedule.UI.Palette

Palette Class

Palette Class represents a set of Color values which are used for displaying C1Schedule. The default value for each color is Empty. The AlternateMonth field should always contain unique Color value before adding the Palette object to the Palettes collection. For other fields Empty is allowed. In such case control uses the corresponding color from the theme definition.

Inheritance
Palette
Namespace: C1.Win.Schedule.UI
Assembly: C1.Win.Schedule.8.dll
Syntax
public class Palette

Constructors

Name Description
Palette(PaletteType)

Initializes a new instance of the Palette object.

Fields

Name Description
AlternateMonth

The Color value which is used for displaying background of alternate month days. For Office 2007 and 2010 palettes this field should always contain unique Color value. For other palettes this field can be Empty. In such case control will use Color value from the theme definition.

Border

The Color value which is used for displaying day borders. This field can be Empty. In such case control will use Color value from the theme definition.

DayHeaderBackground

The Color value which is used for displaying day header background. This field can be Empty. In such case control will use Color value from the theme definition.

DayHeaderBackground2

The Color value which is used for displaying day header gradient background. This field can be Empty. In such case control will use Color value from the theme definition.

DayHeaderBorder

The Color value which is used for displaying day header border. This field can be Empty. In such case control will use Color value from the theme definition.

FreeHour

The Color value which is used for displaying background of free hours. This field can be Empty. In such case control will use Color value from the theme definition.

FreeHourBorder

The Color value which is used for displaying free hours horizontal dark border. This field can be Empty. In such case control will use Color value from the theme definition.

FreeHourLightBorder

The Color value which is used for displaying free hours horizontal light border. This field can be Empty. In such case control will use the FreeHourBorder value.

MonthGridBorder

The Color value which is used for displaying month grid header border inside tabs if GroupTabStyle is Office2007. This field can be Empty. In such case control will use Color value from the theme definition.

MonthGridText

The Color value which is used for displaying month grid header text inside tabs if GroupTabStyle is Office2007. This field can be Empty. In such case control will use Color value from the theme definition.

SelectedDay

The Color value which is used for displaying background of the selected day. This field can be Empty. In such case control will use Color value from the theme definition.

SelectedSlot

The Color value which is used for displaying background of the selected time slots. This field can be Empty. In such case control will use back color of the MonthDayHeaderSelected style.

WorkHour

The Color value which is used for displaying background of working hours. This field can be Empty. In such case control will use Color value from the theme definition.

WorkHourBorder

The Color value which is used for displaying working hours horizontal dark border. This field can be Empty. In such case control will use Color value from the theme definition.

WorkHourLightBorder

The Color value which is used for displaying working hours horizontal light border. This field can be Empty. In such case control will use the WorkHourBorder value.

_theme

Properties

Name Description
KeyColor

Gets the key Color value for the current palette.

PaletteType

Gets the PaletteType value.

Methods

Name Description
CreateOffice2007Palette(Color, Color, Color, Color, Color, Color, Color, Color, Color, Color)

Creates a new instance of the Palette object of Office2007 type.

CreateOffice2010Palette(Color, Color, Color, Color, Color, Color)

Creates a new instance of the Palette object of Office2010 type.

UpdateSlotStyles(ScheduleTheme)