主题
Position (属性)
返回或设置一个 XlLegendPosition值,它代表图表上图例的位置。
示例
python
#本示例将图表中的图例移到图表的底部
def test():
Application.Charts.Item("Chart1").ChartObjects(1).Chart.Legend.Position = xlLegendPositionBottom
python
#本示例显示第一张工作表上的第一个图表中图例的位置是否位于图表上方
def test():
print(Worksheets.Item(1).ChartObjects(1).Chart.Legend.Position == xlLegendPositionTop)