API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.Remove method
Removes a node from the range
Syntax:
Sub Remove(ByVal Index As Long)
Parameters:
Name Type Description
Index
Long
Remarks:
The Remove method removes a specified node from a node range. Removing a node from a node range doesn't delete the node from its curve. However, the node is not included in future references to the node range.
Examples:
The following VBA example returns the selected nodes, removes the first and last selected nodes from the range, and deletes the remaining nodes. As a result, all selected nodes (except the first and last ones) are deleted from the curve.
Sub Test()
Dim nr As NodeRange
Set nr = ActiveShape.Curve.Selection
nr.Remove 1
nr.Remove nr.Count
nr.Delete 
End Sub