Skip to content
本页内容

Width (属性)

返回或设置一个 float 值,它代表对象的宽度(以磅为单位)。

示例

python
#本示例显示 Chart1 中绘图区的宽度
def test():
    plotArea = Application.Charts.Item("Chart1").ChartObjects(1).Chart.PlotArea
    print(plotArea.Width)
python
#下例将 Sheet1 上第一个图表绘图区的宽度设置为400磅
def test():
    plotArea = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.PlotArea
    plotArea.Width = 400