Add a child node to the TreeNode.
void @TreeNodeAdd(object node, object child);
Parameters
object node : TreeNode
object child : ChildNode
Return Value
None
Example
@TreeViewNodeClear("TreeView1");
node = @TreeNodeNew("Floor1", 0, 0);
child = @TreeNodeNew("Office1", 1, 1);
@TreeNodeAdd(node, child);
child =
@TreeNodeNew("Office2", 1, 1);
@TreeNodeAdd(node, child);
child =
@TreeNodeNew("Office3", 1, 1);
@TreeNodeAdd(node, child);
@TreeViewNodeAdd("TreeView1", node);
node = @TreeNodeNew("Floor2", 0, 0);
child = @TreeNodeNew("Office4", 1, 1);
@TreeNodeAdd(node, child);
child =
@TreeNodeNew("Office5", 1, 1);
@TreeNodeAdd(node, child);
child =
@TreeNodeNew("Office6", 1, 1);
@TreeNodeAdd(node, child);
@TreeViewNodeAdd("TreeView1", node);
@TreeViewExpandAll("TreeView1");
Description : Add the Floor1 and Floor2 nodes to the TreeView1 object, and add Office1, Office2, Office3 and Office4, Office5, and Office6 as child nodes, respectively.
Version Information
Supported version: 10.3.3 or higher
Related Helps