主题
Width (属性)
返回或设置一个 Single 值,它代表对象的宽度(以磅为单位)。
示例
python
#本示例显示第一张工作表中新建的ShapeRange对象的宽度
def test():
shpRange = Application.Worksheets.Item(1).Shapes.Range([1, 3])
print(shpRange.Width)
python
#本示例将活动工作表中新建的ShapeRange对象的宽度设置为100磅
def test():
shpRange = ActiveSheet.Shapes.Range([1, 2])
shpRange.Width = 100