Method EnumVisibleControls
EnumVisibleControls<T>()
Enumerates all visible controls of type T from the most recently activated window.
public static IEnumerable<T> EnumVisibleControls<T>() where T : AbstractControl
Returns
- IEnumerable<T>
An enumerable collection of controls of type
Tthat are currently visible in the last activated window. The collection will be empty if no matching controls are found.
Type Parameters
TThe type of control to enumerate. Must derive from AbstractControl.
Remarks
Only controls from the most recently activated window are included. If no visible controls of the specified type are found, the returned collection will be empty.