Structures Collection Properties: Item 

Purpose

Retrieves a Structure object from a Structures collection object.

Syntax

The Item property has the syntax:

Object Item(Variant vaIndex)

Description

The Item property returns a structure object. The parameter vaIndex identifies the Structure object to be returned. This may either be the Index or the Name of the Structure object. A further method for retrieving an item is to invoke the item’s name directly as a property. (See also Named Collection).

Dim Structures As Object

Set Structures = Tree.Structures

Structures.Add("ItemA")

Structures.Add("ItemB")

Structures.ItemA.Type = TreeStructureText