ChSeriesCollection Collection Object

Microsoft Office Web Components Visual Basic

ChSeriesCollection Collection Object

ChChart ChSeriesCollection
Multiple objects

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"