废话少说,直接上核心代码:
string deleteNodeName = "节点1"; //移除advTree上指定名称的Node Node deleteNode = advTreeEquipType.FindNodeByText(deleteNodeName); advTreeEquipType.Nodes[0].Nodes.Remove(deleteNode);//advTreeEquipType.Nodes[0]代表根节点
advTreeEquipType.Nodes[0]
废话少说,直接上核心代码:
string deleteNodeName = "节点1"; //移除advTree上指定名称的Node Node deleteNode = advTreeEquipType.FindNodeByText(deleteNodeName); advTreeEquipType.Nodes[0].Nodes.Remove(deleteNode);//advTreeEquipType.Nodes[0]代表根节点
advTreeEquipType.Nodes[0]