Back to Devexpress

Legend.UseCheckBoxes Property

corelibraries-devexpress-dot-xtracharts-dot-legend-6eaad2f4.md

latest3.2 KB
Original Source

Legend.UseCheckBoxes Property

Specifies a value which determines whether to use checkboxes instead of markers on a chart legend for all legend items.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[Browsable(false)]
[OldApi("This is old API. It is recommended to use the MarkerMode property instead.")]
public bool UseCheckBoxes { get; set; }
vb
<OldApi("This is old API. It is recommended to use the MarkerMode property instead.")>
<Browsable(False)>
Public Property UseCheckBoxes As Boolean

Property Value

TypeDescription
Boolean

true , if legend checkboxes are shown instead of markers for all legend items; otherwise, false.

|

Remarks

This property is out of date. We recommend to use the Legend.MarkerMode property instead.

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

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

csharp
chartControl.CustomDrawSeries += OnCustomDrawSeries;
chartControl.Legend.UseCheckBoxes = true;
chartControl.Series["Point"].CheckedInLegend = false;

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

vb
AddHandler chartControl.CustomDrawSeries, AddressOf OnCustomDrawSeries
chartControl.Legend.UseCheckBoxes = True
chartControl.Series("Point").CheckedInLegend = False

See Also

Legend Check Box

Legend Class

Legend Members

DevExpress.XtraCharts Namespace