PaletteRepository.Add(String, Palette) Method
Adds the palette with the specified name to the repository.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String, specifying the palette’s name. |
palette | Palette | A Palette object to add. |
Remarks
The method sets the name of the palette and then performs a check before addition. The user-defined palette with the same name is replaced. If the palette’s name is found within the predefined palette names list, an exception is raised.
See Also