XYDiagram2D.ShowCrosshair(ControlCoordinates) Method
In This Article
Shows the Crosshair Cursor at the specified coordinates of the Chart Control.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
public void ShowCrosshair(
ControlCoordinates coordinates
)
#Parameters
Name | Type | Description |
---|---|---|
coordinates | Control |
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