TreeNode.AOTadd Method

Creates a subnode to the tree node in the Application Object Tree (AOT).

Syntax

public TreeNode AOTadd(UtilElementName name)

Run On

Called

Parameters

Return Value

Type: TreeNode Class
The newly created subnode.

Remarks

The type of subnode that is created depends on where you are in the tree. The new node acquires the name that was passed through the parameter.

Examples

The following example adds a new form to the tree.

void addForm() 
{ 
    treeNode treeNode; 
    xInfo xInfo = new xInfo(); 
 
    treeNode = xInfo.rootNode(); 
    treeNode = treeNode.AOTfindChild("Forms"); 
    treeNode.AOTadd("myNewForm"); 
}

See Also

TreeNode Class

TreeNode.AOTdelete Method

TreeNode.AOTinsert Method