Skip to content
本页内容

Left (属性)

返回或设置 float 值,它代表从对象左边缘到工作表的 A 列左边缘或图表上的图表区左边缘的距离(以磅为单位)。

示例

python
#本示例设置图表工作表 Chart1 的图表区距离左边缘 100 磅
def test():
    chartarea = Application.Charts.Item("Chart1").ChartObjects(1).Chart.ChartArea
    chartarea.Left = 100
python
#此示例显示工作表 Sheet1 中第一个内嵌图表的图表区距离左边缘的距离
def test():
    chartarea = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.ChartArea
    print(chartarea.Left)