DevComponents.AdvTree 使用方法

private List alist = new List();



 alist.Add("节点1");
 alist.Add("节点2");
alist.Add("节点3");
foreach (var nn in alist)
{
   DevComponents.AdvTree.Node node2 = new DevComponents.AdvTree.Node();
   node2.Text = nn.ToString();
   node1.Nodes.AddRange(new DevComponents.AdvTree.Node[] { node2 });
 
}

你可能感兴趣的:(C#学习)