Previous Document Next Document

Object Model Reference : Classes : S : SubPath : Methods : SubPath.Selection


SubPath.Selection

Function Selection() As NodeRange

Description

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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.