We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How access ColumnSegment of Chart


I want access the ColumnSegmentCollection of my sfchart!

i know i can get the columnsegment like:

private void ColumnSeries_MouseDown(object sender, MouseButtonEventArgs e)


            FrameworkElement element = e.OriginalSource as FrameworkElement;

            if (element != null && element.Tag is ChartSegment)


                ColumnSegment segment = element.Tag as ColumnSegment;



but i want read all segment in other function, ex:

Thank you

3 Replies

SA Santhiya Arulsamy Syncfusion Team April 10, 2015 12:06 PM UTC

Hi Herbert,

Thanks for contacting Syncfusion support.

We have analyzed the reported query and it can be achieved by defining the CustomColumnSeries class which is inherited from the ColumnSeries, since the Segments property are in protected access modifier we need to inherit the ColumnSeries. In that class we have defined the ChartSegmentsCollection, which has the collection of ChartSegment. We have prepared a sample based on your requirement.

Sample: Column_Series.zip

Please find the sample in the following location.

Santhiya A.

HM Herbert Moroni Cavallari de Costa Gois April 14, 2015 08:50 PM UTC

Santhiya, i forgot to say: "Thank you"

it worked fine, thank you!

SS Sheik Syed Abthaheer M Syncfusion Team April 15, 2015 05:45 PM UTC

Hi Herbert,

Thanks for the update. 

Please let us know if you need any further assistance on this. 

M. Sheik

Live Chat Icon For mobile
Up arrow icon