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]