I go through all the elements on the graph and I want to know whether this element is selected or not.
foreach (ChartObject co in ChartControl.ChartObjects) // We go through all the elements on the graph
{
if (co is ChartRectangle) // If this is a rectangle then we work further
{
if( ??? ) // Here you need to determine that this particular rectangle is allocated by the user
{ // how to do it?
oneRect = (co as ChartRectangle); // One specific rectangle with a graph
oneRect.AreaColor = Color.Green; // Give it another color
}
}
}

Comment