指定的圖表或圖表組中所有 Series 對象的集合。
可用 SeriesCollection 方法返回 SeriesCollection 集合。下例調(diào)整集合中每個數(shù)據(jù)系列的內(nèi)部顏色。
For X = 1 To myChart.SeriesCollection.Count
With myChart.SeriesCollection(X)
.Interior.Color = RGB(X * 75, 50, X * 50)
End With
Next X
可用 SeriesCollection(index)(其中 index 為數(shù)據(jù)系列的編號或名稱)返回單個 Series 對象。下例將圖表中第一個數(shù)據(jù)系列的內(nèi)部顏色設(shè)置為紅色。