Chart.LegendTextFontColor 属性 (Access)

返回或设置图表图例使用的字体颜色。 读/写 Long

使用 系统颜色常量 或 RGB 函数以编程方式设置颜色,如示例中所示。 还可以从“设计”视图调色板中浏览并选择颜色。

语法

表达式LegendTextFontColor

expression:一个表示 Chart 对象的变量。

示例

在此示例中, LegendTextFontColor 最初设置为系统颜色常量,然后再将其更改为 RGB 值。

With myChart
 MsgBox ("Applying a system color constant")
 .ChartTitleFontColor = vbHighlight
 MsgBox ("Applying an RGB value")
 .ChartTitleFontColor = RGB(255, 165, 0)
End With

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。