CrosshairElementBase.LineElement Property

Returns the Crosshair Cursor‘s line element to change its settings when using the ChartControl.CustomDrawCrosshair event to modify the Crosshair’s appearance.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll


public CrosshairLineElement LineElement { get; }

Property Value

Type Description

The crosshair line element.


To display crosshair lines, use the CrosshairOptions.ShowArgumentLine and CrosshairOptions.ShowValueLine properties. Use the ChartControl.CrosshairOptions property to access the crosshair settings.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LineElement property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also