CrosshairLabelElement Class
Defines the appearance of a crosshair label element when custom drawing a crosshair cursor using the ChartControl.CustomDrawCrosshair event.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Returned By
The CrosshairElement.LabelElement property returns an instance of CrosshairLabelElement.
#Remarks
To get access to the appearance properties of the CrosshairLabelElement object, use the CrosshairElement.LabelElement property.
For more information 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.