ChildNodes

 


Description

Retrieves a collection of all Node objects that are children of a Node object.

Syntax

aNode.ChildNodes

aNode.ChildNodes(index)

Parameter

Description

aNode

a Node object.

(index)

Optional. An integer, or a string, or a Node object specifying the index value of the node to retrieve. Integer indexes are zero-based, meaning the first node in the collection has index 0. A string index is valid only if the string is the name of a node in the collection. A Node object is valid only if it is in the ChildNodes collection.

Remarks

Unlike the related ParentNodes collection, this collection cannot be edited.

As with all MSBN3 collections, the elements of this collection can be enumerated. Also, as with other MSBN3 collections, the index numbers, key strings, and key objects of this collection can be enumerated. See "Collections and Maps: an Overview" for details.

Properties

CountDescription, ExistingKey, Item, Model, MSBN, Node, Ref

Collections

Indexes, Keys, KeyObjects

Applies To

Node

Events

See events NodeParentNodesAdd and NodeParentNodesRemove of Model.

Also See

ParentNodes

Collections and Maps: an Overview