主题
Width (属性)
返回或设置一个 Single 值,它代表对象的宽度(以磅为单位)。
示例
python
#本示例显示第一张工作表中第一个形状的宽度
def test():
shapes = Application.Worksheets.Item(1).Shapes
print(shapes.Item(1).Width)
python
#本示例将活动工作表中第二个形状的宽度减小一半
def test():
shapes = ActiveSheet.Shapes
shapes.Item(2).Width *= 0.5