主题
Tab (属性)
为图表返回一个 Tab 对象。
示例
javascript
/*本示例将图表工作表 Chart1 选项的颜色索引设置为无颜色。*/
function test() {
let chart = Application.Charts.Item("Chart1")
chart.Tab.ColorIndex = xlColorIndexNone
}
javascript
/*本示例将图表工作表 Chart1 的配色方案中主题颜色的枚举值设置为 xlThemeColorAccent1 。*/
function test() {
let chart = Application.Charts.Item("Chart1")
chart.Tab.ThemeColor = xlThemeColorAccent1
}