Skip to main content
A newer version of this page is available. .

SeriesBase.CrosshairEnabled Property

Gets or sets a value that specifies whether or not a crosshair cursor is enabled for this series.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public DefaultBoolean CrosshairEnabled { get; set; }

Property Value

Type Description
DefaultBoolean

Default - the CrosshairEnabled property value is obtained from the parent chart’s ChartControl.CrosshairEnabled (WebChartControl.CrosshairEnabled) property; True - a crosshair cursor is enabled for a series; False - a crosshair cursor is disabled.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Use the CrosshairEnabled property to activate (deactivate) a crosshair cursor at the level of a particular 2D Series.

After that, it becomes possible to customize the crosshair cursor appearance and position on a diagram via the ChartControl.CrosshairOptions property.

If you need to change the crosshair label appearance, it can be done via the Axis2D.CrosshairLabelPattern property.

For more information on how to use a crosshair cursor, see the Tooltip and Crosshair Cursor topic.

See Also