OfficeColorPalette
OfficeColorPalette is the base class for all MSOffice2007 palettes. All office palettes inherit this class and implement GetHeaderColors() and GetGeneratedColors() as well as GetColors() methods.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public abstract class OfficeColorPalette : ColorPaletteBase
Inheritance: objectColorPaletteBaseOfficeColorPalette
Derived Classes:
Inherited Members
Constructors
protected OfficeColorPalette()
Properties
Represent the number of columns in a Palette. If you want the colors in a Palette to be in a particular order use this property.
public override int ColumnsCount { get; set; }
The columns count.
Overrides:
ItemsFlow
Orientation
Gets or sets the items flow direction in a Palette..
public override Orientation ItemsFlow { get; set; }
The items flow.
Overrides:
Methods
GetColors()
IEnumerable<Color>
GetColors represent all the colors in a particular Palette including header and main palette colors.
public override IEnumerable<Color> GetColors()
IEnumerable<Color>
Returns a collection of all colors: header and main.
Overrides:
GetGeneratedColors is used when you want to get only the generated(the production from the base colors) colors for a specific Office palette.
public abstract IEnumerable<Color> GetGeneratedColors()
IEnumerable<Color>
Returns a collection of the generated colors.
This method returns the main palette colors and it is implemented in all classes that derive from OfficeColorPalette.
GetHeaderColors()
IEnumerable<Color>
GetHeaderColors is used when you want to get only the base(header) colors for a specific Office palette.
public abstract IEnumerable<Color> GetHeaderColors()
IEnumerable<Color>
Returns a collection of the header colors.
This method returns the header colors and it is implemented in all classes that derive from OfficeColorPalette.
A helper to generate a MSOffice2007 like palette. This method generate a production of each color using its brightness and all generated colors form a Palette.
public static IEnumerable<Color> GetPaletteFromBaseColors(IEnumerable<Color> baseColors)
The base colors. This is a collection with colors that are used for generating the palette colors.
Returns:IEnumerable<Color>