ZForge.Controls.TreeViewAdv.Tree.TreeModel.GetChildren C# (CSharp) Method

GetChildren() public method

public GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
treePath TreePath
return System.Collections.IEnumerable
        public System.Collections.IEnumerable GetChildren(TreePath treePath)
        {
            Node node = FindNode(treePath);
            if (node != null)
                foreach (Node n in node.Nodes)
                    yield return n;
            else
                yield break;
        }