API Documentation > CorelDRAW > 2025-v26 > SegmentRange > IVGSegmentRange
SegmentRange.NodeRange property
Returns a range of nodes corresponding to the given segments
Syntax:
Property Get NodeRange() As NodeRange
Remarks:
The NodeRange property returns a node range (or NodeRange object) containing all nodes that end segments in the active segment-range object.
Examples:
The following VBA example converts all line segments to curves and changes the type of all segment-ending nodes to smooth.
Sub Test()
Dim sgr As New SegmentRange
Dim seg As Segment
For Each seg In ActiveShape.Curve.Segments
  If seg.Type = cdrLineSegment Then sgr.Add seg
  Next seg
  sgr.SetType cdrCurveSegment
  sgr.NodeRange.SetType cdrSmoothNode

End Sub