Recursively searches Control hierarchy for the first control that
matches the type of T and returns it as T
Namespace: MonoSoftware.WebAssembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static T SelectFirst<T>(
this Control from
)
where T : Control
|
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function SelectFirst(Of T As Control) (
from As Control
) As T |
Visual C++ |
---|
public:
[ExtensionAttribute]
generic<typename T>
where T : Control
static T SelectFirst(
Control^ from
) |
F# |
---|
static member SelectFirst :
from : Control -> 'T when 'T : Control
|
Type Parameters
Return Value
Type:
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also