Object Model Reference : Classes : S : SubPath : Methods : SubPath.Selection |
Function Selection() As NodeRange
Member of SubPath
The Selection method returns a node range (or NodeRange object) containing all the selected nodes on a subpath.
• |
The Shape tool must be selected.
|
The following VBA 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 |
Copyright 2013 Corel Corporation. All rights reserved.