Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.Stretch |
Sub Stretch(StretchX As Double, [StretchY As Double], [StretchCharactersSize As Boolean = False])
Member of ShapeRange
The Stretch method stretches the shapes in a shape range, treating the range as a single object.
• |
The shape range is distorted relative to the reference point specified by the
Document.ReferencePoint property.
|
The following VBA example proportionally stretches all the shapes on the page by 200%. The position of the shape range is relative to the upper-right corner of the bounding box of the range.
Sub Test() |
ActiveDocument.ReferencePoint = cdrTopRight |
ActivePage.Shapes.All.Stretch 2 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.