摘要: 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 阅读全文
posted @ 2012-05-23 15:14 DR19 阅读(812) 评论(0) 推荐(0) 编辑