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