Method Find
Find(VisualElement, TypeSearch, Predicate<VisualElement>)
Retrieves allVisualElement.
Declaration
public static List<VisualElement> Find(this VisualElement host, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<VisualElement> predicate = null)Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | host | VisualElementconsidered as host. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<VisualElement> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<VisualElement> | List ofVisualElement. |
Find(VisualElement, string, TypeSearch, Predicate<VisualElement>)
Retrieves allVisualElementfiltered according to the selector.
Declaration
public static List<VisualElement> Find(this VisualElement host, string selector, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<VisualElement> predicate = null)Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | host | VisualElementconsidered as host. |
| string | selector | The text to be parsed as a selector. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<VisualElement> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<VisualElement> | List ofVisualElementfiltered according to the selector. |
Find(IEnumerable<VisualElement>, TypeSearch, Predicate<VisualElement>)
Retrieves allVisualElement.
Declaration
public static List<VisualElement> Find(this IEnumerable<VisualElement> hosts, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<VisualElement> predicate = null)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<VisualElement> | hosts | List ofVisualElementconsidered as hosts. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<VisualElement> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<VisualElement> | List ofVisualElement. |
Find(IEnumerable<VisualElement>, string, TypeSearch, Predicate<VisualElement>)
Retrieves allVisualElementfiltered according to the selector.
Declaration
public static List<VisualElement> Find(this IEnumerable<VisualElement> hosts, string selector, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<VisualElement> predicate = null)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<VisualElement> | hosts | List ofVisualElementconsidered as hosts. |
| string | selector | The text to be parsed as a selector. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<VisualElement> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<VisualElement> | List ofVisualElementfiltered according to the selector. |
Find<TResult>(VisualElement, TypeSearch, Predicate<TResult>)
Retrieves all elements.
Declaration
public static List<TResult> Find<TResult>(this VisualElement host, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<TResult> predicate = null) where TResult : VisualElementParameters
| Type | Name | Description |
|---|---|---|
| VisualElement | host | VisualElementconsidered as host. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<TResult> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<TResult> | List of elements. |
Type Parameters
| Name | Description |
|---|---|
| TResult | Type of the result based on the class.VisualElement. |
Find<TResult>(VisualElement, string, TypeSearch, Predicate<TResult>)
Retrieves all elements filtered according to the selector.
Declaration
public static List<TResult> Find<TResult>(this VisualElement host, string selector, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<TResult> predicate = null) where TResult : VisualElementParameters
| Type | Name | Description |
|---|---|---|
| VisualElement | host | VisualElementconsidered as host. |
| string | selector | The text to be parsed as a selector. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<TResult> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<TResult> | List of elements filtered according to the selector. |
Type Parameters
| Name | Description |
|---|---|
| TResult | Type of the result based on the class.VisualElement. |
Find<TResult>(IEnumerable<VisualElement>, TypeSearch, Predicate<TResult>)
Retrieves all elements.
Declaration
public static List<TResult> Find<TResult>(this IEnumerable<VisualElement> hosts, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<TResult> predicate = null) where TResult : VisualElementParameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<VisualElement> | hosts | List ofVisualElementconsidered as hosts. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<TResult> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<TResult> | List of elements. |
Type Parameters
| Name | Description |
|---|---|
| TResult | Type of the result based on the class.VisualElement. |
Find<TResult>(IEnumerable<VisualElement>, string, TypeSearch, Predicate<TResult>)
Retrieves all elements filtered according to the selector.
Declaration
public static List<TResult> Find<TResult>(this IEnumerable<VisualElement> hosts, string selector, UIToolkitComponent.TypeSearch searchFrom = TypeSearch.Container, Predicate<TResult> predicate = null) where TResult : VisualElementParameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<VisualElement> | hosts | List ofVisualElementconsidered as hosts. |
| string | selector | The text to be parsed as a selector. |
| UIToolkitComponent.TypeSearch | searchFrom | Target children from the parent's container (indirect) or via the hierarchy (direct). |
| Predicate<TResult> | predicate | Function to filter the result. |
Returns
| Type | Description |
|---|---|
| List<TResult> | List of elements filtered according to the selector. |
Type Parameters
| Name | Description |
|---|---|
| TResult | Type of the result based on the class.VisualElement. |
