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.v20.1.dll

Declaration

[RuntimeObject]
public class Palette :
    CollectionBase,
    IPalette,
    ICloneable
<RuntimeObject>
Public Class Palette
    Inherits CollectionBase
    Implements IPalette,
               ICloneable

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.

See Also