HasDataLabel 屬性

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

如果數(shù)據(jù)點(diǎn)具有數(shù)據(jù)標(biāo)簽,則該值為 True。Boolean 類型,可讀寫。

示例

本示例打開第三個(gè)數(shù)據(jù)系列的第七個(gè)數(shù)據(jù)點(diǎn)的數(shù)據(jù)標(biāo)簽,并將該數(shù)據(jù)標(biāo)簽的顏色設(shè)置為藍(lán)色。

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

    .HasDataLabel = True

    .ApplyDataLabels Type:=xlValue

    .DataLabel.Font.ColorIndex = 5

End With