📜  C# 检查控件类型 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.860000             🧑  作者: Mango

代码示例1
foreach(Control c in List)
{
  if (c is TextBox)
  {
    ((TextBox)c).Text = "This should be the new text";
  }
}