|   |   | Object Model Reference : Classes : S : SubPath : Properties : SubPath.Segments | 
Property Segments As Segments
Member of SubPath
The Segments property returns a Segments collection, which contains all the segments of a subpath.
The Segments property returns a read-only value.
The following VBA example converts, to lines, all segments in the first subpath.
| Sub Test() | 
|  Dim seg As Segment | 
|  For Each seg In ActiveShape.Curve.Subpaths(1).Segments | 
|   seg.Type = cdrLineSegment | 
|  Next seg | 
| End Sub | 
|   |   |   | 
Copyright 2013 Corel Corporation. All rights reserved.