SurfacePoint.NearestSeriesPoint Property
In This Article
Returns the nearest series point to the SurfacePoint coordinates.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
#Declaration
public SeriesPoint3D NearestSeriesPoint { get; }
#Property Value
Type | Description |
---|---|
Series |
The nearest series point to the Surface |
#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