API Documentation > CorelDRAW > 2025-v26 > Curve > IVGCurve
Curve.Selection method
Creates a range containing all the selected nodes on this curve
Syntax:
Function Selection() As NodeRange
Remarks:
The Selection method returns a node range that contains all the preselected nodes of a curve. This method can be used only when the Shape tool is the active tool.
Examples:
The following VBA example selects an object in the active document and determines whether the object is a curve object. If it is a curve, it evaluates the pre-selected nodes in the object's selection. If the node type in the selection is mixed nodes, it displays a message in a message box.
Sub CurveSelection()
Dim s As Shape
Dim nr As NodeRange
Set s = ActiveSelection.Shapes(1)
If s.Type = cdrCurveShape Then
  Set nr = s.Curve.Selection
  If nr.type=cdrMixedNodes then

 MsgBox "The current curve selection has mixed nodes."
  End If
End If 
End Sub