API Documentation > CorelDRAW > 2025-v26 > Nodes > IVGNodes
Nodes.Count property
Gets the number of nodes in the node collection
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the total number of nodes in a Nodes collection.
Examples:
The following VBA example displays the number of nodes, segments, and subpaths in the curve.
Sub Test()
Dim crv As Curve
Set crv = ActiveShape.Curve
MsgBox "The curve contains:" & vbCr & _
  "Nodes: " & crv.Nodes.Count & vbCr & _
  "Segments: " & crv.Segments.Count & vbCr & _
  "Subpaths: " & crv.Subpaths.Count 
End Sub