📅  最后修改于: 2022-03-11 14:48:49.730000             🧑  作者: Mango
private void LoopThroughControls(Control parent)
{
foreach (Control c in parent.Controls)
{
if (c.GetType() == typeof(YourType)) {
//Do stuff
} else {
LoopThroughControls(c);
}
}
}