xtd 0.2.0
Loading...
Searching...
No Matches

◆ check_state() [1/2]

virtual forms::check_state xtd::forms::toggle_button::check_state ( ) const
virtualnoexcept

Gets the state of the toggle_button.

Returns
One of the check_state enumeration values. The default value is unchecked.
Remarks
If the three_state property is set to false, the check_state property value can only be set to check_state::Indeterminate in code and not by u ser interaction.
The following table describes the xtd::forms::appearance of the toggle_button control in its different states for the normal and button style control toggle_button::appearance.
Check_state appearance::normal appearance::button
checked The toggle_button displays a check mark. The control appears sunken.
unchecked The CheckBox is empty. The control appears raised.
indeterminate The CheckBox displays a check mark and is shaded. The control appears flat.