Back to Devexpress

SeriesBase.CrosshairEnabled Property

corelibraries-devexpress-dot-xtracharts-dot-seriesbase-60ae9a10.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
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:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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 CrosshairAxisLabelOptions.Pattern property.

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

See Also

SeriesBase Class

SeriesBase Members

DevExpress.XtraCharts Namespace