Skip to main content

SurfacePoint.NearestSeriesPoint Property

Returns the nearest series point to the SurfacePoint coordinates.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.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