API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.Stretch method
Stretches the shapes in the shape range
Syntax:
Sub Stretch(ByVal StretchX As Double, Optional ByVal StretchY As Double = 0, Optional ByVal StretchCharactersSize As Boolean = False)
Parameters:
Name Type Description
StretchX
Double
StretchY
Double
Specifies the vertical stretch factor. If not specified, this value assigned the same value as the StretchX parameter, resulting in a proportional stretch.
StretchCharactersSize
Boolean
Specifies whether to stretch characters.
Remarks:
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.
Examples:
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