Palette Class
Represents a palette (collection of entries with two colors) used to draw a chart using the current appearance settings.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.1.dll
Declaration
[RuntimeObject]
[TypeConverter(typeof(Palette.PaletteTypeConverter))]
public class Palette :
CollectionBase,
IPalette,
ICloneable
Related API Members
The following members accept/return Palette objects:
Remarks
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Palette class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.