Back to Devexpress

PaletteRepository.Add(String, Palette) Method

corelibraries-devexpress-dot-xtracharts-dot-paletterepository-dot-add-x28-system-dot-string-devexpress-dot-xtracharts-dot-palette-x29.md

latest1.6 KB
Original Source

PaletteRepository.Add(String, Palette) Method

Adds the palette with the specified name to the repository.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void Add(
    string name,
    Palette palette
)
vb
Public Sub Add(
    name As String,
    palette As Palette
)

Parameters

NameTypeDescription
nameString

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

PaletteRepository Class

PaletteRepository Members

DevExpress.XtraCharts Namespace