主题
ShowLegendKey (属性)
如果数据标签图例项标示可见,则为 True。bool 类型,可读写。
示例
python
#本示例将图表工作表 Chart1 中图表的模拟运算表的图例项标示设置为可见
def test():
datatable = Application.Charts.Item("Chart1").ChartObjects(1).Chart.DataTable
datatable.ShowLegendKey = True
python
#本示例显示工作表 Sheet1 中第一张图表的模拟运算表的图例项标示是否可见
def test():
datatable = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.DataTable
print(datatable.ShowLegendKey)