Add (ParentNodes)


Description

Make one node the parent of another by adding the first node to the second node's ParentNodes collection.

Syntax

someParentNodes.Add(index)

 

Parameter Description
someParentNodes a node's ParentNodes collection.
index An integer, or a string, or a Node object specifying the Node object to add to a node's ParentNodes collection. The zero-based integer is a index into the ModelNodes collection. Likewise, the Node object must be in the ModelNodes collection and the string must be the name of a Node object in the ModelNodes collection.

Return Value

The parent Node object added.

Applies To

ParentNodes