Skip to main content

Palettes.GetPalette(String, IChartContainer) Method

Returns the palette by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public static Palette GetPalette(
    string name,
    IChartContainer chart = null
)

Parameters

Name Type Description
name String

The palette name.

Optional Parameters

Name Type Default Description
chart DevExpress.XtraCharts.Native.IChartContainer null

The chart whose palette is required (Optional parameter; should be specified when the Default palette is required).

Returns

Type Description
Palette

The palette with the specified name.

Remarks

The method’s second parameter can be used for the following controls: ChartControl, WebChartControl or XRChart.

See Also