Skip to content
本页内容

Width (属性)

返回对象的宽度(以磅为单位)。只读。

返回值

float

示例

python
#此示例显示第一张工作表上第一个图表的第二个数据系列中第二个数据点的宽度
def test():
    series = Application.Worksheets.Item(1).ChartObjects(1).Chart.SeriesCollection(2)
    print(series.Points(2).Width)
python
#本示例显示 Chart1 中第三个数据系列的第三个数据点的宽度
def test():
    series = Application.Charts.Item("Chart1").ChartObjects(1).Chart.SeriesCollection(3)
    print(series.Points(3).Width)