TreeNodeCollection

 

Contents

Name

TreeNodeCollection

Remark

Hierarchy

Examples

EX1

void TreeNodeCollection_ex1()
{
    Tree tree;
    if(tree)
    {
       tree.AddNode();
       tree.AddNumericNode(1);
       tree.AddNumericNode(2);
       tree.AddNumericNode(3, "I333");
       tree.AddNumericNode(4);
       
       TreeNodeCollection tnc(tree, "int");
       foreach(TreeNode tn in tnc)
       {
           string str = tn.tagName;
           out_str(str);
       }
    }    
}

header to Include

origin.h

Reference

Members

Name Brief Example
TreeNodeCollection To get a collection of tree nodes from parent tree node by enumerative name prefix. Examples