FairyGUI.TreeView.UpdateNodes C# (CSharp) Method

UpdateNodes() public method

public UpdateNodes ( List nodes ) : void
nodes List
return void
        public void UpdateNodes(List<TreeNode> nodes)
        {
            int cnt = nodes.Count;
            for (int i = 0; i < cnt; i++)
            {
                TreeNode node = nodes[i];
                if (node.cell == null)
                    return;

                if (treeNodeRender != null)
                    treeNodeRender(node);
            }
        }

Usage Example

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