Previous Document Next Document
SubPath.Selection

Function Selection() As NodeRange

Member of SubPath

The Selection method returns a NodeRange object that contains all of the selected nodes on a subpath. The Shape tool must be selected.

The following code example displays the number of nodes selected in the first subpath of the active curve:

Sub Test() 
 Dim nr As NodeRange 
 Set nr = ActiveShape.Curve.Subpaths(1).Selection 
 MsgBox "There are " & nr.Count & " nodes selected in the first 
subpath" 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.