Determine the width of a chart segment

In my program i have to determine the width of all chart segments in the chart.

I can see a property segments for example in the StackingColumnSeries but it is not public.

Is there a way to get this information through another way.

Thanks,

Johann


1 Reply 1 reply marked as answer

JG Johann Geßler November 15, 2022 10:42 AM UTC

Found the solution by my self:


object chartSegments = chartSeries.GetType().

                                                             GetField("Segments", BindingFlags.NonPublic | BindingFlags.Instance).

                                                                           GetValue(chartSeries);


Marked as answer
Loader.
Up arrow icon