摘要:
View Code 1//GetAllNodeText(trvPlacement.Nodes);//统计TreeView所有子节点数量23privatevoidGetAllNodeText(TreeNodeCollectiontnc)//统计TreeView所有子节点数量4{5foreach(TreeNodenodeintnc)6{7if(node.ChildNodes.Count!=0)8{9GetAllNodeText(node.ChildNodes);10}11node.Text=node.Text+GetNodesCount(node);12}13}1415privateintGetN 阅读全文