CrosshairElement Class
Represents crosshair elements (e.g., crosshair value lines, crosshair value labels, crosshair labels) that can be used to custom draw a crosshair cursor.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Remarks
Use the CustomDrawCrosshairEventArgs.CrosshairElements property to get access to the CrosshairElement object.
To learn more on crosshair cursors, see Crosshair Cursor.
#Examples
This example shows how to provide a custom appearance for the crosshair cursor using the ChartControl.CustomDrawCrosshair event. This event is invoked when you click the Custom Draw Crosshair Cursor button on the form.
If you wish to display crosshair axis lines and labels on a chart before custom drawing the crosshair cursor, set the CrosshairOptions.ShowArgumentLabels, CrosshairOptions.ShowArgumentLine, CrosshairOptions.ShowValueLabels and CrosshairOptions.ShowValueLine properties to true.
Note that the customization of the crosshair cursor is provided for the CrosshairOptions.SnapMode property set to NearestArgument.