指定的圖表或圖表組中所有 Series 對(duì)象的集合。
可用 SeriesCollection 方法返回 SeriesCollection 集合。下例調(diào)整集合中每個(gè)數(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ù)系列的編號(hào)或名稱)返回單個(gè) Series 對(duì)象。下例將圖表中第一個(gè)數(shù)據(jù)系列的內(nèi)部顏色設(shè)置為紅色。