skyline 递归查找信息树中所有节点_信息树
  int root = sgworld.ProjectTree.GetNextItem(0, ItemCode.ROOT);
            string tree = BuildTreeRecursive(root, 1);
private string BuildTreeRecursive(int current,int indent)//递归函数,模糊查找
skyline 递归查找信息树中所有节点_信息树                {
skyline 递归查找信息树中所有节点_信息树                        string padding = "";
skyline 递归查找信息树中所有节点_信息树                        for (int i = 0; i < indent * 3; i++)
skyline 递归查找信息树中所有节点_信息树                                padding += "-";    
skyline 递归查找信息树中所有节点_信息树                        string result = "";
skyline 递归查找信息树中所有节点_信息树                        // iterate over all siblings of current node
skyline 递归查找信息树中所有节点_信息树                        while (current > 0)
skyline 递归查找信息树中所有节点_信息树                        {
skyline 递归查找信息树中所有节点_信息树                             // append node name to the tree string
skyline 递归查找信息树中所有节点_信息树                                string currentName = sgworld.ProjectTree.GetItemName(current);
skyline 递归查找信息树中所有节点_信息树                                result += padding + currentName + "\r\n";
skyline 递归查找信息树中所有节点_信息树                                // if current node is group, recursively build tree from its first child;
skyline 递归查找信息树中所有节点_信息树                                if (sgworld.ProjectTree.IsGroup(current))
skyline 递归查找信息树中所有节点_信息树                                {
skyline 递归查找信息树中所有节点_信息树                                        int child = sgworld.ProjectTree.GetNextItem(current, ItemCode.CHILD);
skyline 递归查找信息树中所有节点_信息树                                        result += BuildTreeRecursive(child, indent + 1);
skyline 递归查找信息树中所有节点_信息树                                }
skyline 递归查找信息树中所有节点_信息树                                current = sgworld.ProjectTree.GetNextItem(current,ItemCode.NEXT);
skyline 递归查找信息树中所有节点_信息树                                // move to next sibling                                
skyline 递归查找信息树中所有节点_信息树                        }
skyline 递归查找信息树中所有节点_信息树                        return result;
skyline 递归查找信息树中所有节点_信息树                }