Page 1 of 1

Series Count

Posted: Tue Oct 31, 2006 12:16 pm
by 9642631
Could you add Chart.Series.Count ?

Posted: Tue Oct 31, 2006 12:21 pm
by narcis
Hi cbdevelopers,

This already exists, eg:

Code: Select all

            int c = tChart1.Series.Count;

Posted: Tue Nov 14, 2006 3:51 pm
by David
In VCL (Delphi) the syntax is:

Code: Select all

var i : Integer;

i := Chart1.SeriesList.Count;
In C++ Builder:

Code: Select all

int i ;

i = Chart1->SeriesList->Count;

Chart1.Series.Count cannot be done in VCL as "Series" is an indexed property:

Code: Select all

var s : TChartSeries ;

s := Chart1.Series[123];
and indexed properties do not allow standalone use.