what is the property to know series type?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SDG
Newbie
Newbie
Posts: 40
Joined: Tue Apr 08, 2003 4:00 am

what is the property to know series type?

Post by SDG » Sat Jan 17, 2004 6:32 am

I have created a new series in run time using chart gallery.
I want to know the series type i.e Line/bar/point series/... that I have created using gallery to save the type and create the same type of series later.
what property should I use?

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Sat Jan 17, 2004 1:18 pm

Hi.

Perhaps you could use TChartSeries.ClassName property. Something like this:

Code: Select all

Chart1.FreeAllSeries();
Chart1.AddSeries(TBarSeries);
// returns TBarSeries
ShowMessage(Chart1.Series[0].ClassName); 
Or you can also use ClassType property (depending what exactly you want to do with retrieved information.
Marjan Slatinek,
http://www.steema.com

Post Reply