-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
TreeXPath
-
Methods
-
SelectFirst(String)
SelectFirst(String) Method
Definition
Selects the first node matching the XPath expression.
public T? SelectFirst<T>(string xpath)
where T : class
Type parameters
- T
- The type to cast result to.
Parameters
- xpath
- String
The XPath expression.
Returns
- {T}
- The first matching node, or null.