Back to Devexpress

SeriesBase.CheckedInLegend Property

corelibraries-devexpress-dot-xtracharts-dot-seriesbase-7e05d744.md

latest4.1 KB
Original Source

SeriesBase.CheckedInLegend Property

Gets or sets a value that determines whether a legend check box is checked for a chart series.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool CheckedInLegend { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property CheckedInLegend As Boolean

Property Value

TypeDescription
Boolean

true , if a legend check box is checked for the series; otherwise, false.

|

Remarks

Use the CheckedInLegend property to control the visibility of a series. If the legend check box is checked, the series is shown on a diagram, otherwise, the series is invisible.

Note

To learn more on legend check boxes, see the corresponding section of the Legends topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckedInLegend 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#L20

csharp
chartControl.Legend.UseCheckBoxes = true;
chartControl.Series["Point"].CheckedInLegend = false;
chartControl.Series["Line"].CheckedInLegend = true;

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

vb
chartControl.Legend.UseCheckBoxes = True
chartControl.Series("Point").CheckedInLegend = False
chartControl.Series("Line").CheckedInLegend = True

See Also

Legend Check Box

Series

SeriesBase Class

SeriesBase Members

DevExpress.XtraCharts Namespace