Skip to main content
All docs
V25.1
  • SurfacePoint.NearestSeriesPoint Property

    Returns the nearest series point to the SurfacePoint coordinates.

    Namespace: DevExpress.Xpf.Charts

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

    NuGet Package: DevExpress.Wpf.Charts

    Declaration

    public SeriesPoint3D NearestSeriesPoint { get; }

    Property Value

    Type Description
    SeriesPoint3D

    The nearest series point to the SurfacePoint coordinates.

    Remarks

    This example obtains the nearest series point to the mouse cursor when a user clicks a series:

    private void Chart3DControl_MouseUp(object sender, MouseButtonEventArgs e) {
      Chart3DHitInfo hitInfo = chart.CalcHitInfo(e.GetPosition(this));
      if (hitInfo.InSeries && hitInfo.AdditionalItem is SurfacePoint) {
        SurfacePoint surfacePoint = (SurfacePoint)hitInfo.AdditionalItem;
        SeriesPoint3D seriesPoint = surfacePoint.NearestSeriesPoint;
      }
    }
    
    See Also