Page 1 of 1

ColorLine Removal

Posted: Thu Jun 04, 2009 7:50 am
by 13047002
cl = new ColorLine(tChart.Chart);
cl.Axis = tChart.Axes.Left;
cl.Value = 0;
cl.AllowDrag = false;


If I add a ColorLine this way to chart to crete custm axis, how do I remove it?

Is there also any way to restore a tchart to say a default state. If you use 1 chart to display varying contents. you have toreset many properties constantly. and there is a allot of properties ;-)

Posted: Thu Jun 04, 2009 11:34 am
by yeray
Hi Luke,

To delete the components in VS you could do as follows:

Code: Select all

cl.Dispose();
And to create a backup of the chart you could use a tee file but note that the events won't be stored so you should reassign them manually.