返回或设置数据标志的背景色作为当前调色板中的索引也可以是下面的 XlColorIndex 常量之一: xlColorIndexAutomatic 或 xlColorIndexNone 。 仅适用于折线图、散点图和雷达图。 Long 类型,可读写。
语法
表达式。MarkerBackgroundColorIndex
表达 一个代表 Point 对象的变量。
示例
本示例设置 Chart1 上第一系列中第二个点的标记背景色和前景色。
With Charts("Chart1").SeriesCollection(1).Points(2)
.MarkerBackgroundColorIndex = 4 'green
.MarkerForegroundColorIndex = 3 'red
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。