今天用到了TreeView控件,多次添加后发现内容是重复的,于是用到清除:this.myTreeView.Nodes.Clear(); 如果想在添加完节点后,默认全展开:this.myTreeView.ExpandAll();