API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.StretchEx method
Stretches the shapes in the shape range using the anchor point
Syntax:
Sub StretchEx(ByVal CenterX As Double, ByVal CenterY As Double, ByVal StretchX As Double, Optional ByVal StretchY As Double = 0, Optional ByVal StretchCharactersSize As Boolean = False)
Parameters:
Name Type Description
CenterX
Double
CenterY
Double
StretchX
Double
StretchY
Double
Specifies the vertical stretch factor. If not specified, this value is assigned the same value as the StretchX parameter, resulting in a proportional stretch.
StretchCharactersSize
Boolean
Specifies whether to stretch characters.
Remarks:
The StretchEx method stretches the shapes in a shape range, treating the range as a single object. The range is distorted relative to a point that is specified as the center of distortion.
Examples:
The following VBA example stretches all of 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