FairyGUI.TreeView.ExpandAll C# (CSharp) Method

ExpandAll() public method

public ExpandAll ( FairyGUI.TreeNode folderNode ) : void
folderNode FairyGUI.TreeNode
return void
        public void ExpandAll(TreeNode folderNode)
        {
            folderNode.expanded = true;
            int cnt = folderNode.numChildren;
            for (int i = 0; i < cnt; i++)
            {
                TreeNode node = folderNode.GetChildAt(i);
                if (node.isFolder)
                    ExpandAll(node);
            }
        }

Usage Example

 static public int ExpandAll(IntPtr l)
 {
     try {
         FairyGUI.TreeView self = (FairyGUI.TreeView)checkSelf(l);
         FairyGUI.TreeNode a1;
         checkType(l, 2, out a1);
         self.ExpandAll(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.TreeView::ExpandAll