Method SetType
SetType<TElement>()
Sets the type of the targetedVisualElement.
Declaration
public Selector.SelectorBuilder SetType<TElement>() where TElement : VisualElementReturns
| Type |
|---|
| Selector.SelectorBuilder |
Type Parameters
| Name | Description |
|---|---|
| TElement | Type of the targetedVisualElement. |
Exceptions
| Type | Condition |
|---|---|
| Exception | Can't be use with host pseudo-class. |
SetType(Type)
Sets the type of the targetedVisualElement.
Declaration
public Selector.SelectorBuilder SetType(Type type)Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | Type of the targetedVisualElement. |
Returns
| Type |
|---|
| Selector.SelectorBuilder |
Exceptions
| Type | Condition |
|---|---|
| Exception | Can't be use with host pseudo-class. |
| ArgumentException | Type must beVisualElementor a subclass of it. |
SetType(string)
Sets the type of the targetedVisualElement.
Declaration
public Selector.SelectorBuilder SetType(string type)Parameters
| Type | Name | Description |
|---|---|---|
| string | type | Type of the targetedVisualElement. |
Returns
| Type |
|---|
| Selector.SelectorBuilder |
Exceptions
| Type | Condition |
|---|---|
| Exception | Can't be use with host pseudo-class. |
| Exception | Can't be use with host pseudo-class. |
| ArgumentException | Type name can only contain letters, numbers, underscores and dashes. |
