ui::SelectionItemProvider¶
Header: winui/ui/Automation.hpp.
The SelectionItem pattern: one selectable entry of a Selection container (a radio button, a list item). Implement item_selected() and select_item(); an entry of a container that selects several at once also overrides add_to_selection() and remove_from_selection().
item_selected¶
Whether this entry is selected.
select_item¶
Make this the selected entry; true when it did.
add_to_selection¶
Adds this entry to the selection and keeps the others; true when it did. The default is select_item(), for a container that selects one entry at a time.
remove_from_selection¶
Takes this entry out of the selection; true when it did. The default refuses, for an entry that is deselected only by selecting another one.