Legend Checkbox

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Legend Checkbox

Post by tirby » Wed Jan 11, 2012 5:46 pm

Hello,

I'm using VS2010 C#.
Can someone explain how to Check and/or Un-Check a checkbox in the legend?

Thanks!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Legend Checkbox

Post by Sandra » Thu Jan 12, 2012 11:53 am

Hello tirby,

If you want add checkboxes in the Legend, you only need use next line of code:

Code: Select all

    tChart1.Legend.CheckBoxes = true;
Using previous code you can Check and Un-Check legendCheckBoxes automatically.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Re: Legend Checkbox

Post by tirby » Thu Jan 12, 2012 3:38 pm

Hi Sandra,

No, the check boxes already exsist, I need to check and/or un-check them.
The code below is a way to describe my goal, but doesn't work, or is not supported.

tChart1.Legend.CheckBox(1).Checked = true;

-- or --

tChart1.Legend.CheckBox(1).Checked = false;

How can I accomplish this?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Legend Checkbox

Post by Sandra » Fri Jan 13, 2012 3:53 pm

Hello tirby,

I recommend take a look in this here where there are some examples that you can use to achieve as you want.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Re: Legend Checkbox

Post by tirby » Sat Jan 14, 2012 4:23 pm

Sandra,

Thanks for all your help.

Here is the line of code I needed.

tChart1.Series[3].Active = false;

Thanks!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Legend Checkbox

Post by Sandra » Mon Jan 16, 2012 9:25 am

Hello tirby,

I am glad that the solution help. :)

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply