public void clearControl(Control.ControlCollection control) {
foreach (Control c in control) {
if (c is TextEdit) {
TextEdit t = (TextEdit)c;
t.Text = string.Empty;
}
if (c.HasChildren) {
clearControl(c.Controls);
}
}
}
C# 批量清空layoutControl下面的所有textEdit
最新推荐文章于 2023-04-22 14:36:43 发布