Back to Devexpress

Chart3DControl.ShowCrosshair(Point) Method

wpf-devexpress-dot-xpf-dot-charts-dot-chart3dcontrol-dot-showcrosshair-x28-system-dot-windows-dot-point-x29.md

latest2.1 KB
Original Source

Chart3DControl.ShowCrosshair(Point) Method

Shows the Crosshair Cursor at the point with the specified coordinates relative to the 3D chart’s top-left corner.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ShowCrosshair(
    Point screenPoint
)
vb
Public Sub ShowCrosshair(
    screenPoint As Point
)

Parameters

NameTypeDescription
screenPointPoint

The Crosshair Cursor coordinates relative to the 3D chart’s top-left corner.

|

Remarks

The following example shows the Crosshair Cursor on the MouseUp event:

csharp
private void Chart_MouseUp(object sender, MouseButtonEventArgs e) {
  Chart3DControl chart = (Chart3DControl)sender;
  Point point = e.GetPosition(chart);
  chart.ShowCrosshair(point);
}
vb
Private Sub Chart_MouseUp(ByVal sender As Object, ByVal e As MouseButtonEventArgs)
  Dim chart As Chart3DControl = CType(sender, Chart3DControl)
  Dim point As Point = e.GetPosition(chart)
  chart.ShowCrosshair(point)
End Sub

You can use the HideCrosshair method to hide the Crosshair Cursor.

See Also

ShowCrosshair(Point, Boolean)

HideCrosshair()

Chart3DControl Class

Chart3DControl Members

DevExpress.Xpf.Charts Namespace