DotNetBar控件中,删除或移除AdvTree上指定名称的Node

废话少说,直接上核心代码:

                string deleteNodeName = "节点1";
                //移除advTree上指定名称的Node
                Node deleteNode = advTreeEquipType.FindNodeByText(deleteNodeName);
                advTreeEquipType.Nodes[0].Nodes.Remove(deleteNode);//advTreeEquipType.Nodes[0]代表根节点

 

advTreeEquipType.Nodes[0]
posted @ 2021-10-16 10:28  rainbow70626  阅读(131)  评论(0编辑  收藏  举报