Method SetName
SetName(string)
Set the name of the targetedVisualElement.
Declaration
public Selector.SelectorBuilder SetName(string name)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the targetedVisualElement |
Returns
| Type |
|---|
| Selector.SelectorBuilder |
Exceptions
| Type | Condition |
|---|---|
| Exception | Can't be use with host pseudo-class. |
| ArgumentException | Name can only contain letters, numbers, underscores and dashes. |
