|   |   | Object Model Reference : Classes : S : Segments : Properties : Segments.Count | 
Property Count As Long
Member of Segments
The Count property returns the number of segments in a Segments collection.
The Count property returns a read-only value.
The following VBA example displays the number of nodes, segments, and subpaths in the active 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 | 
|   |   |   | 
Copyright 2013 Corel Corporation. All rights reserved.