ColorLine Removal

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Luke
Newbie
Newbie
Posts: 68
Joined: Thu Oct 11, 2007 12:00 am

ColorLine Removal

Post by Luke » Thu Jun 04, 2009 7:50 am

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 ;-)

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Jun 04, 2009 11:34 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply