Object Model Reference : Classes : S : Shape : Methods : Shape.StretchEx |
Sub StretchEx(CenterX As Double, CenterY As Double, StretchX As Double, [StretchY As Double], [StretchCharactersSize As Boolean = False])
Member of Shape
The StretchEx method stretches a shape to a specified width and height, relative to the coordinates specified as the center of distortion.
The following VBA example stretches all shapes on the page by 200%, using the center of the page as the center of the distortion.
Sub Test() |
ActiveDocument.ReferencePoint = cdrBottomLeft |
With ActivePage |
.Shapes.All.StretchEx .CenterX, .CenterY, 2 |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.