Class 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.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public abstract class OfficeColorPalette : ColorPaletteBase
Constructors
OfficeColorPalette()
Declaration
protected OfficeColorPalette()
Properties
ColumnsCount
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.
Declaration
public override int ColumnsCount { get; set; }
Property Value
System.Int32
The columns count. |
Overrides
ItemsFlow
Gets or sets the items flow direction in a Palette..
Declaration
public override Orientation ItemsFlow { get; set; }
Property Value
System.Windows.Controls.Orientation
The items flow. |
Overrides
Methods
GetColors()
GetColors represent all the colors in a particular Palette including header and main palette colors.
Declaration
public override IEnumerable<Color> GetColors()
Returns
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
Returns a collection of all colors: header and main. |
Overrides
GetGeneratedColors()
GetGeneratedColors is used when you want to get only the generated(the production from the base colors) colors for a specific Office palette.
Declaration
public abstract IEnumerable<Color> GetGeneratedColors()
Returns
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
Returns a collection of the generated colors. |
Remarks
This method returns the main palette colors and it is implemented in all classes that derive from OfficeColorPalette.
GetHeaderColors()
GetHeaderColors is used when you want to get only the base(header) colors for a specific Office palette.
Declaration
public abstract IEnumerable<Color> GetHeaderColors()
Returns
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
Returns a collection of the header colors. |
Remarks
This method returns the header colors and it is implemented in all classes that derive from OfficeColorPalette.
GetPaletteFromBaseColors(IEnumerable<Color>)
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.
Declaration
public static IEnumerable<Color> GetPaletteFromBaseColors(IEnumerable<Color> baseColors)
Parameters
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
baseColors
The base colors. This is a collection with colors that are used for generating the palette colors. |
Returns
System.Collections.Generic.IEnumerable<System.Windows.Media.Color>
|