API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.SetType method
Sets the type of all nodes
Syntax:
Sub SetType(ByVal Type As cdrNodeType)
Parameters:
Name Type Description
Type
Remarks:
The SetType method sets the type for all nodes in a node range. The SetType method returns a value of cdrNodeType.
Examples:
The following VBA example changes all nodes in the active shape to cusp nodes.
Sub Test()
ActiveShape.Curve.Nodes.All.SetType cdrCuspNode 
End Sub