ParentNodes


Description

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

Syntax

Getting:

aNode.ParentNodes

aNode.ParentNodes(index)

Setting:

Set aNode.ParentNodes = someParentNodes

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 ParentNodes collection.
someParentNodes Replaces the nodes current parents with the parent nodes in someParentNodes.

Examples

See: Distributions- an Overview

Remarks

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

Methods

Add, Remove

Collections

Indexes, Keys, KeyObjects

Applies To

Node

Events

See events NodeParentNodesAdd, NodeParentNodesRemove, and NodeParentNodeSetName of Model.

Also See

ChildNodes

Collections and Maps: an Overview