ITChart.Series
ITChart
function Series(SeriesIndex: Integer): ISeries;
Type Library
TeeChartx
Description
The Series method returns the list of Series that the Chart class maintains and draws.
(Series can be Active or not).
Example [Visual Basic]:
The following example will set all Bar Series Style to Cylinders
Dim t As Integer
For t = 0 To TChart1.SeriesCount - 1
With TChart1.Series(t)
If .SeriesType = scBar Then
.asBar.BarStyle = bsCilinder
End If
End With
Next t
The following example will count all Active Series points
Dim Counter As Integer
Counter = 0
For t = 0 To TChart1.SeriesCount - 1
Counter = Counter + TChart1.Series(t).Count
Next t
MsgBox Counter
*Note
The Series method replaces the Series array property (now renamed to aSeries to support existing compiled applications) deprecated due to non-supported of indexed properies at root level of an ActiveX component when imported to MS Visual Studio.NET. See the TeeChart release notes for any environment specific information about this property to method change.
The Series method offers a direct substitute for functionality of the Series property predecesor.