API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.Stretch method
Resizes the nodes within the range as a shape
Syntax:
Sub Stretch(Optional ByVal RatioX As Single = 1, Optional ByVal RatioY As Single = 1, Optional ByVal UseAnchorPoint As Boolean = False, Optional ByVal StretchAnchorX As Double = 0, Optional ByVal StretchAnchorY As Double = 0)
Parameters:
Name Type Description
RatioX
Single
Specifies the width of the aspect ratio to use when stretching objects, expressed as a multiple of the current width.
RatioY
Single
Specifies the height of the aspect ratio to use when stretching objects, expressed as a multiple of the current height.
UseAnchorPoint
Boolean
Specifies whether to use an anchor point.
StretchAnchorX
Double
Specifies, in document units, the x-coordinate of the anchor point to use when stretching the node range.
StretchAnchorY
Double
Specifies, in document units, the y-coordinate of the anchor point to use when stretching the node range.
Remarks:
The Stretch property stretches the nodes in a node range as though the node range were a separate shape object.
Examples:
The following VBA example stretches the node range in the active shape with ratio values of 1, no reference point, and an anchor point of (0, 0).
Sub SkewNode()
Dim nr as NodeRange
Set nr = ActiveShape.Curve.Nodes.All
With nr
  .Stretch 1, 1, False, 0, 0
End With 
End Sub