Skip to content
本页内容

Left (属性)

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

示例

python
#本示例显示 Chart1 中的绘图区左边缘到图表上的图表区左边缘的距离
def test():
    plotArea = Application.Charts.Item("Chart1").ChartObjects(1).Chart.PlotArea
    print(plotArea.Left)
python
#下例将 Sheet1 上第一个图表的绘图区左边缘到图表上的图表区左边缘的距离设置为10磅
def test():
    plotArea = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.PlotArea
    plotArea.Left = 10