A newer version of this page is available.
Switch to the current version.
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.v18.2.dll
Declaration
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public bool CheckedInLegend { get; set; }
<TypeConverter(GetType(BooleanTypeConverter))>
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
<XtraSerializableProperty>
Public Property CheckedInLegend As Boolean
Property Value
Type | Description |
---|---|
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 control the visibility of a constant line on the diagram, ensure the check box appears on a legend (Legend.MarkerMode is set to ChechBox, CheckBoxAndMarker or MarkerAndCheckBox and the SeriesBase.CheckableInLegend property is set to true).
- For the Chart Control for ASP.NET and ASP.NET MVC, to save the state of the legend check box for series generated using a series template on callbacks, set the WebChartControl.SaveStateOnCallbacks (ChartControlSettings.SaveStateOnCallbacks) property to true.
To learn more on legend check boxes, see the corresponding section of the Legends topic.
Implements
DevExpress.XtraCharts.Native.ICheckableLegendItem.CheckedInLegend
See Also
Feedback