using TYPEOF to determine series type
Posted: Wed Nov 08, 2006 6:21 am
I have been using typeof to determine series type i.e.
this works fine for line and Points, however for some reason a GANTT series is of both GANTT and POINTS type.
Am I doing somethign completely stupid here or is there something else wrong?
Is there a better way to determine what type a series is?
Code: Select all
Dim ts As Steema.TeeChart.Styles.Series
For Each ts In tc.Series
If TypeOf (ts) Is Steema.TeeChart.Styles.Line Then
...
end if
If TypeOf (ts) Is Steema.TeeChart.Styles.Gantt Then
...
end if
If TypeOf (ts) Is Steema.TeeChart.Styles.Points Then
...
end if
next ts
Am I doing somethign completely stupid here or is there something else wrong?
Is there a better way to determine what type a series is?