Object Model Reference : Classes : S : Shape : Methods : Shape.Stretch |
Sub Stretch(StretchX As Double, [StretchY As Double], [StretchCharactersSize As Boolean = False])
Member of Shape
The Stretch method stretches a shape relative to the reference point specified by the Document.ReferencePoint property.
The following VBA example stretches each shape on the current layer by 200%, relative to the center of each shape.
Sub Test() |
Dim s As Shape |
ActiveDocument.ReferencePoint = cdrCenter |
For Each s In ActiveLayer.Shapes |
s.CreateSelection |
s.Stretch 2 |
Next s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.