返回或设置数据标志的背景颜色,表示为当前调色板中的颜色编号或下列 XlColorIndex 常量之一:xlColorIndexAutomatic 或 xlColorIndexNone。仅适用于折线图、散点图和雷达图。Long 类型,可读写。
下列图示给出了默认调色板中的颜色编号值。
本示例为 Chart1 中第一个数据系列的第二个数据点的标记设置背景颜色和前景颜色。
With Charts("Chart1").SeriesCollection(1).Points(2)
.MarkerBackgroundColorIndex = 4 'green
.MarkerForegroundColorIndex = 3 'red
End With