Find<T>(INameScope, String) Method
Finds a named element in an INameScope.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static T Find<T>(
this INameScope nameScope,
string name
)
where T : class
<ExtensionAttribute>
Public Shared Function Find(Of T As Class) (
nameScope As INameScope,
name As String
) As T
[<ExtensionAttribute>]
static member Find :
nameScope : INameScope *
name : string -> 'T when 'T : not struct
Parameters
- INameScope
- The name scope.
- String
- The name.
Type Parameters
- The element type.
Return Value
T
The named element or null if not found.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type INameScope. 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
Reference
NameScopeExtensions Class
Find Overload
Avalonia.Controls Namespace