This documentation is archived and is not being maintained.

ChSeriesCollection Collection Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

A collection of all the ChSeries objects on a chart. A chart can contain up to 256 series.

Using the ChSeriesCollection Collection Object

The ChChart object’s SeriesCollection property returns a ChSeriesCollection collection.

Use the Add method to create a new series and add it to the chart.

Use SeriesCollection(index), where index is the series index number or name, to return a single ChSeries object. The following example sets the color of the interior for the first series in the first chart of ChartSpace1.

ChartSpace1.Charts(0).SeriesCollection(1).Interior.Color = "Red"