1.获取uLabelContainer3容器下的,所有文本框控件信息,并清空
var controls1 = uLabelContainer3.Controls;//获取uLabelContainer3容器的所有控件
foreach (Control c in controls1) //使用循环获取uLabelContainer3容器下的所有控件
{
if (c.GetType().Name == "UTextEditor") //如果是UTextEditor控件且获取到了焦点时,进行数据的校验
{
//对指定控件进行业务操作
c.Text = string.Empty;
}
}