ConstantLine.CheckedInLegend Property
In This Article
Gets or sets a value that determines whether a legend check box is checked for a constant line.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool CheckedInLegend { get; set; }
#Property Value
Type | Description |
---|---|
Boolean | true, if a legend check box is checked for the constant line; otherwise, false. |
#Remarks
Use the CheckedInLegend property to control the visibility of a constant line. If the legend check box is checked, the constant line is shown on a diagram, otherwise, the constant line is invisible.
Note
- To control the visibility of a constant line on the diagram, ensure that the check box appears on a legend (Legend.
Marker is set to ChechMode Box , CheckBox or MarkerAnd Marker And and the ConstantCheck Box Line. property is set to true).Checkable In Legend - For the Chart Control for ASP.
NET and ASP. legend check box for constant lines on callbacks, set the WebNET MVC, to save the state of a Chart (ChartControl. Save State On Callbacks Control ) property to true.Settings. Save State On Callbacks
To learn more on legend check boxes, see the corresponding section of the Legends topic.
See Also