Back to Devexpress

ChartControl.PaletteRepository Property

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-863abe8c.md

latest2.9 KB
Original Source

ChartControl.PaletteRepository Property

Gets the palette repository of the chart.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[Browsable(false)]
public PaletteRepository PaletteRepository { get; }
vb
<Browsable(False)>
Public ReadOnly Property PaletteRepository As PaletteRepository

Property Value

TypeDescription
PaletteRepository

A PaletteRepository object which represents the palette repository of the chart.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PaletteRepository property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chart-create-custom-legend-radio-buttons-to-control-visibility-of-a-chart-series/CS/MainForm.cs#L69

csharp
string paletteName = chartControl.PaletteName;
Palette currentPalette = chartControl.PaletteRepository[paletteName];
PaletteEntry paletteEntryAccordingToSeries = currentPalette[seriesIndex];

winforms-chart-create-custom-legend-radio-buttons-to-control-visibility-of-a-chart-series/VB/MainForm.vb#L80

vb
Dim paletteName As String = chartControl.PaletteName
Dim currentPalette As Palette = chartControl.PaletteRepository(paletteName)
Dim paletteEntryAccordingToSeries As PaletteEntry = currentPalette(seriesIndex)

See Also

IndicatorsPaletteRepository

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace