[]
Class that defines named groups of colors.
public sealed class ColorPalette : IEnumerable<ColorPaletteEntry>, IEnumerable
| Name | Description |
|---|---|
| ColorPalette(string) | Creates an instance of the color palette with the specified theme name. |
| 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. |
| 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. |