![]() |
![]() |
Node.AbsoluteIndex
Property AbsoluteIndex As Long
Member of Node
The AbsoluteIndex property returns the number (index) of a node within a curve (containing all subpaths).
The Index property returns the number (index) of the node within its subpath. The Index and AbsoluteIndex properties return the same value if the node belongs to the first subpath of the curve.
The AbsoluteIndex property returns a read-only value.
The following code example loops through all of the nodes of each subpath and prints the nodes Index and AbsoluteIndex property in the Intermediate window of the Visual Basic Editor:
Sub Test() Dim s As Shape Dim sp As SubPath Dim n As Node Set s = ActiveShape If s.Type = cdrCurveShape Then For Each sp In s.Curve.Subpaths For Each n In sp.Nodes Debug.Print n.Index, n.AbsoluteIndex Next n Next sp End If End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.