how to set through code marks visible

TeeChart for ActiveX, COM and ASP
Post Reply
Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

how to set through code marks visible

Post by Aravind » Wed Jun 21, 2006 8:39 am

how to set visibility on and off through code for all marks in all series

in dialog box series-marks -there is option all series visible where we can switch on/off marks for all series visiblity .

i want to do the same thing through the code ...
how can we set that property
pls advise me
aravind

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 21, 2006 9:15 am

Hi Aravind,

You can do something like this:

Code: Select all

Private Sub Command1_Click()
    For i = 0 To TChart1.Series.Count - 1
        TChart1.Series(i).Marks.Visible = Not TChart1.Series(i).Marks.Visible
    Next
End Sub
Best Regards,
Narcís Calvet / 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