Previous Document Next Document
SubPath.LastSegment

Property LastSegment As Segment

Member of SubPath

The LastSegment property returns the last segment of a subpath.

The LastSegment property returns a read-only value.

The following code example converts the last segment of the first subpath of the selected curve to a line:

Sub Test() 
 ActiveShape.Curve.Subpaths(1).LastSegment.Type = cdrLineSegment 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.