Back to Devexpress

Palettes.GetPalette(String, IChartContainer) Method

corelibraries-devexpress-dot-xtracharts-dot-palettes-dot-getpalette-x28-system-dot-string-devexpress-dot-xtracharts-dot-native-dot-ichartcontainer-x29.md

latest1.9 KB
Original Source

Palettes.GetPalette(String, IChartContainer) Method

Returns the palette by its name.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public static Palette GetPalette(
    string name,
    IChartContainer chart = null
)
vb
Public Shared Function GetPalette(
    name As String,
    chart As IChartContainer = Nothing
) As Palette

Parameters

NameTypeDescription
nameString

The palette name.

|

Optional Parameters

NameTypeDefaultDescription
chartDevExpress.XtraCharts.Native.IChartContainernull

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

|

Returns

TypeDescription
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

Palettes Class

Palettes Members

DevExpress.XtraCharts Namespace