API Documentation > CorelDRAW > 2025-v26 > Node > IVGNode
Node.Segment property
Returns the segment which the given node ends
Syntax:
Property Get Segment() As Segment
Remarks:
The Segment property returns the segment that contains a specified node.
Examples:
The following VBA example converts, to a line, the segment that is adjacent to third node in the selected curve.
Sub Test()
ActiveShape.Curve.Nodes(3).Segment.Type = cdrLineSegment 
End Sub