Previous Document Next Document

Object Model Reference : Classes : N : Nodes : Properties : Nodes.Item


Nodes.Item

Property Item(Index As Long) As Node

Description

Member of Nodes

The Item property returns the specified node in a Nodes collection.

Item is the default property of the Nodes class, and its reference can be omitted when you are accessing items in a Nodes collection. For example, Nodes.Item(2) is the same as Nodes(2) — they both reference the second node object in the collection.

The Item property returns a read-only value.

Parameter
Description
Index
Specifies the node by its index number

VBA example

The following VBA 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.