MarkerBackgroundColorIndex 属性

返回或设置数据标志的背景色,表示为当前调色板中的颜色编号或以下 XlColorIndex 常量之一。XlColorIndex 类型,可读写。

XlColorIndex 可为以下 XlColorIndex 常量之一。

xlColorIndexNone

xlColorIndexAutomatic

expression MarkerBackgroundColorIndex

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

本示例设置第一个数据系列中第二个数据点的数据标志的背景色和前景色。

With myChart.SeriesCollection(1).Points(2)

    .MarkerBackgroundColorIndex = 4    'green

    .MarkerForegroundColorIndex = 3    'red

End With