Page 1 of 1

how to set through code marks visible

Posted: Wed Jun 21, 2006 8:39 am
by 6925851
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

Posted: Wed Jun 21, 2006 9:15 am
by narcis
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