The following example uses the HasControls method to determine if any controls exist before using the Count property to iterate through a ControlCollection object.

 
  • 下面的示例在使用Count属性循环访问ControlCollection对象之前,使用HasControls方法确定是否存在任何控件。
今日热词
目录 附录 查词历史