Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Chart3DHitInfo.AdditionalItem Property

Stores additional information about a test point.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public object AdditionalItem { get; }

#Property Value

Type Description
Object

An object that contains additional information about a test point.

#Remarks

When you use a series view of the SurfaceSeriesView type, the AdditionalItem property returns a SurfacePoint object if a user clicks the series surface. Use the Chart3DHitInfo.SeriesPoint property to obtain information about a test point if a user clicks a series point marker or a series point of a discrete 3D series (for example, Bars).

#Example

This example shows coordinates for a surface point and series point marker clicked in a 3D chart:

using DevExpress.Xpf.Charts;
using System.Windows;
//...
private void Chart3DControl_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e) {
    Chart3DHitInfo hitInfo = chart.CalcHitInfo(e.GetPosition(this));
    if (hitInfo.InSeries) {
        string str;
        if (hitInfo.SeriesPoint != null) {
            SeriesPoint3D point = hitInfo.SeriesPoint;
            str = $"X: {point.NumericXArgument:f2}, Y: {point.NumericYArgument:f2}, Z: {point.Value:f2}";
            MessageBox.Show(str);
        }
        if (hitInfo.AdditionalItem != null) {
            SurfacePoint surfacePoint = (SurfacePoint)hitInfo.AdditionalItem;
            str = $"X: {surfacePoint.X:f2}, Y: {surfacePoint.Y:f2}, Z: {surfacePoint.Z:f2}";
            MessageBox.Show(str);
        }
    }
}
See Also