Skip to main content

PaletteRepository.Add(String, Palette) Method

Adds the palette with the specified name to the repository.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public void Add(
    string name,
    Palette palette
)

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