API Documentation > CorelDRAW > 2025-v26 > Nodes > IVGNodes
Nodes.Range method
Creates a range containing the specified nodes
Syntax:
Function Range(ByRef ParamArray IndexArray() As Variant) As NodeRange
Parameters:
Name Type Description
IndexArray
Variant
Remarks:
The Range method returns a node range that contains all specified nodes in a Nodes collection. The Range method accepts a variable number of arguments. It also accepts arrays.
Examples:
The following VBA example moves nodes the first, third, and fifth nodes by two inches towards the top of the page.
Sub Test()
Dim nr As NodeRange
Set nr = ActiveShape.Curve.Nodes.Range(Array(1, 3, 5))
nr.Move 0, 2 
End Sub