Chart series type in CPP

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Chart series type in CPP

Post by bdw » Tue Jul 09, 2013 5:37 am

Hello,
I thought I had done this before but can't seem to find it. I have a bunch of series and want to go through the series and find a particular series type.

For example I think this works in delphi :-

for t:= 0 Chart1.SeriesCount-1 do
if Chart1.Series[t] is TDonutSeries then

Can you tell me what the equivalent is in CPP ?

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Re: Chart series type in CPP

Post by bdw » Tue Jul 09, 2013 5:56 am

found the answer, use dynamic_cast

Post Reply