Method SelectOneAsync
SelectOneAsync(String)
This function changes the selected button.
Declaration
public Task<bool> SelectOneAsync(string selection)
Parameters
Type | Name | Description |
---|---|---|
System.String | selection | The desired selection. Pass to switch all buttons off.
|
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
Examples
This selects the first choice if present
if (0 < radioButton.Choices.Count)
await radioButton.SelectOneAsync(radioButton.Choices.ElementAt(0));
Switches all radio buttons off
await radioButton.SelectOneAsync(null);