DataLabel 屬性

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

返回 DataLabel 對象,該對象代表與指定數(shù)據(jù)點或趨勢線相聯(lián)系的數(shù)據(jù)標簽。只讀。

示例

本示例打開第三個數(shù)據(jù)系列的第七個數(shù)據(jù)點的數(shù)據(jù)標簽,并將該數(shù)據(jù)標簽的顏色設(shè)置為藍色。

With myChart.SeriesCollection(3).Points(7)

    .HasDataLabel = True

    .ApplyDataLabels type:=xlValue

    .DataLabel.Font.ColorIndex = 5

End With