![]() |
![]() |
Nodes.Item
Property Item(Index As Long) As Node
Member of Nodes
The Item property returns the specified node.
The Item property is the default property and its reference can be omitted when accessing items in the collection. For example, Nodes.Item(2)
is the same as Nodes(2)
they both reference the second node object in the Nodes collection.
The Item property returns a read-only value.
The following code example converts all nodes in the curve to cusp nodes:
Sub Test() Dim i As Long For i = 1 To ActiveShape.Curve.Nodes.Count ActiveShape.Curve.Nodes(i).Type = cdrCuspNode Next i End Sub Sub Test() Dim n As Node For Each n In ActiveShape.Curve.Nodes n.Type = cdrCuspNode Next n End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.