Nodes Collection Property: Item 

Purpose

Retrieves a Node object from a Nodes collection.

Syntax

The Item property has the syntax:

Object Item(Variant vaIndex)

Description

The Item property retrieves a Node object from the Nodes collection (and is the default property for Nodes collection objects). Set the parameter vaIndex to describe the element you want returned. The following variant data types are legal types for vaIndex:

The Node object with a Key property equal to vaIndex is returned. Since Key is a unique value within the entire control, the returned Node object need not be a member of the Nodes collection for which the method was called: the returned node may be any node within the entire control. If the key is not valid, vaIndex is converted to an integer value that is used as index into the collection. This leads either to the desired node, or to one of two exceptions:

The parameter vaWhat is converted to an integer value and used as index in the collection.