Winform - TreeView控件,只展开根目录-LMLPHP

TreeNode类型是有Expand和ExpandAll这两个方法。而Treeview是只有ExpandAll的,
想要展开根目录下面的节点的话

            //只展开根目录
if (this.treeView1.Nodes.Count > ) this.treeView1.Nodes[].Expand();
05-07 12:43