Skip to main content

PaletteException Class

An exception that is thrown if an error occur when processing the palettes in a chart control.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts


public class PaletteException :


This exception can be thrown in different cases when working with palettes in XtraCharts.

Exception Text Reason Solution
The palette is a default palette and can’t be modified. You’re trying to modify one of the default palettes in XtraCharts. This isn’t permitted. Copy an existing palette via its Palette.Clone method and modify it how you need.
The chart doesn’t contain a palette with the PaletteName name. There’s no palette with the name you specified when trying to access the palette within the palette repository. Make sure that the palette repository contains a palette with the specified name, and you’ve entered it correctly.
Can’t add a palette which has an empty name (“”) to the palette repository. Please, specify a name for the palette. You’re trying to add a palette with an empty name to the repository. Specify a non-empty name for the palette.
The palette with the PaletteName name already exists in the repository. A palette with the specified name already exists. Specify a different name for the palette.


See Also