API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.Stretch method
Specifies a value to stretch a shape horizontally andor vertically relative to its reference point
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 distance to stretch the shape vertically. If this value is omitted, it is assumed to be the same as the StretchX parameter value, resulting in a proportional stretch.
StretchCharactersSize
Boolean
Specifies whether characters are stretched with the shape.
Remarks:
The Stretch method stretches a shape relative to the reference point specified by the Document.ReferencePoint property.
Examples:
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