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

BubbleSeries2D.GetWeight(SeriesPoint) Method

Gets the value of the BubbleSeries2D.Weight attached property for a specified SeriesPoint.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public static double GetWeight(
    SeriesPoint point
)

#Parameters

Name Type Description
point SeriesPoint

A SeriesPoint object whose BubbleSeries2D.Weight property’s value is to be returned.

#Returns

Type Description
Double

The value of the BubbleSeries2D.Weight property for the specified series point.

#Remarks

The following code uses the GetWeight method to obtain the Weight value of each bubble point:

private void Window_Loaded(object sender, RoutedEventArgs e) {
    BubbleSeries2D bubbleSeries = chart.Diagram.Series[0] as BubbleSeries2D;
    if (bubbleSeries != null) {
        foreach (SeriesPoint sp in bubbleSeries.Points) {
            double weight = BubbleSeries2D.GetWeight(sp);
            // Your custom logic goes here.
        }
    }
}
See Also