Skip to content

ui::ValueProvider

Header: winui/ui/Automation.hpp.

The Value pattern: a text value (a TextBox's contents, a read-only ComboBox's selected item). Implement every member.

text_value

virtual std::string text_value() const = 0

The text.

text_value_read_only

virtual bool text_value_read_only() const = 0

True when a client cannot set it.

set_text_value

virtual bool set_text_value(std::string_view text) = 0

Replace the text; true when it did (false when read-only or disabled).

~ValueProvider

~ValueProvider() = default