Points 集合對象

此頁沒有內(nèi)容條目
內(nèi)容

Chart

parmultChartGroups (ChartGroup)

parchildparshareSeriesCollection (Series)

spacespaceparchildPoints (Point)

spacespacespaceparmultBorder

spacespacespaceparmultDataLabel

spacespacespaceparchildInterior

圖表中指定的數(shù)據(jù)系列內(nèi)所有 Point 對象的集合。

Points 集合對象用法

可用 Points 方法返回 Points 集合。下例向圖表中第一個數(shù)據(jù)系列的最后一個數(shù)據(jù)點添加數(shù)據(jù)標簽。

Dim pts As Points

Set pts = myChart.SeriesCollection(1).Points

pts(pts.Count).ApplyDataLabels Type:=xlShowValue

可用 Points(index)(其中 index 為數(shù)據(jù)點編號)返回單個 Point 對象。數(shù)據(jù)系列中的數(shù)據(jù)點按從左至右的順序編號。Points(1) 為最左邊的數(shù)據(jù)點,而 Points(Points.Count) 為最右邊的數(shù)據(jù)點。下例設置圖表中第一個數(shù)據(jù)系列的第三個數(shù)據(jù)點的數(shù)據(jù)標志樣式。指定的數(shù)據(jù)系列必須是二維折線圖、散點圖或雷達圖中的數(shù)據(jù)系列。

myChart.SeriesCollection(1).Points(3).MarkerStyle = xlDiamond