Represents a palette (collection of entries with two colors) used to draw a chart using the current appearance settings.
[TypeConverter(typeof(Palette.PaletteTypeConverter))] [RuntimeObject] public class Palette : CollectionBase, IPalette, ICloneable
<TypeConverter(GetType(Palette.PaletteTypeConverter))> <RuntimeObject> Public Class Palette Inherits CollectionBase Implements IPalette, ICloneable
Related API Members
The following members accept/return Palette objects:
A palette represents itself as a collection of palette entries. Each palette entry is an instance of the PaletteEntry class and contains two colors (PaletteEntry.Color and PaletteEntry.Color2). These colors are used to draw chart elements with different appearance settings (gradient and hatch filling, etc.) defined by the ChartControl.AppearanceName value. The currently used palette is specified via the ChartControl.PaletteName property.
By default, XtraCharts provides a number of palettes represented by the Palettes public static properties. Normally, you don't need to modify them, but if they don't meet your requirements you can create your own Palette object and add it to the PaletteRepository via the PaletteRepository.RegisterPalette method.