主题
Top (属性)
返回一个 float值,它代表从对象的上边缘到工作表第一行顶部或图表上的图表区顶部的距离(以磅为单位)。
示例
python
#下例显示 Sheet1 中的第一个图表的第二个图例项的图例标示上边缘到到图表区顶部的距离
def test():
legend = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Legend
print(legend.LegendEntries(2).LegendKey.Top)
python
#本示例显示 Chart1 上第一个图例项的图例标示上边缘到到图表区顶部的距离
def test():
print(Application.Charts.Item("Chart1").ChartObjects(1).Chart.Legend.LegendEntries(1).LegendKey.Top)