ControlsCollection Extension Methods

IEnumerable<T> FindControlsOfType<T>()
Finds all controls of a certain type in the collection.
var controls = this.Controls.FindControlsOfType<MyCustomControl>();

foreach (var control in controls)
{....}

Last edited Feb 20, 2010 at 9:37 AM by jole, version 1

Comments

No comments yet.