统计一个panel中lable的个数

int n = panel.Controls.OfType<Label>().Count();

  

 

posted @ 2012-09-20 08:57  Jerome's Blog  阅读(157)  评论(0编辑  收藏  举报