判断TreeView节点等级

public int LevelOfNode(TreeNode tn) 

int x=0
if(tn.Parent!=null
return LevelOfNode(tn.Parent)+1
else 
return x; 
}
  

posted on 2006-10-28 10:21  散步的蠕虫  阅读(369)  评论(0编辑  收藏  举报

导航