Skip to main content

XYDiagram2D.ShowCrosshair(ControlCoordinates) Method

Shows the Crosshair Cursor at the specified coordinates of the Chart Control.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public void ShowCrosshair(
    ControlCoordinates coordinates
)

Parameters

Name Type Description
coordinates ControlCoordinates

Chart Control coordinates.

Remarks

The following code snippet shows the Crosshair Cursor at the Chart Control coordinates.

XYDiagram diagram = (XYDiagram)chartControl1.Diagram;
ControlCoordinates coordinates = diagram.DiagramToPoint("Asia", 80);
diagram.ShowCrosshair(coordinates);
See Also