[]
        
(Showing Draft Content)

C1.WPF.Extended.ColorPalette

ColorPalette Class

Class that defines named groups of colors.

Inheritance
ColorPalette
Namespace: C1.WPF.Extended
Assembly: C1.WPF.Extended.4.6.2.dll
Syntax
public sealed class ColorPalette : IEnumerable<ColorPaletteEntry>, IEnumerable

Constructors

Name Description
ColorPalette(string)

Creates an instance of the color palette with the specified theme name.

Properties

Name Description
Count

Gets the number of palette entries.

this[int]

Gets the palette entry with the specified index.

ThemeName

Gets or sets the name of the color theme.

Methods

Name Description
Add(Color)

Adds the specified color to the palette.

Add(Color, string)

Adds the color with the specified name.

Add(Color, string, string)

Adds the color with the specified name and description.

Clear()

Deletes all entries from the palette.

Clone(string)

Returns a clone of this palette with the specified theme name.

Contains(Color)

Determines whether a color is in the palette.

GetColorPalette(Office2007ColorTheme)

Returns one of the predefined color palettes.

IndexOf(Color)

Searches for the specified color in the palette and returns a zero-based index of the found entry.

Set(int, Color)

Assigns the color to the palette entry with the specified index.

Set(int, Color, string)

Assigns the color and color name to the palette entry with the specified index.