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

◆ auto_check() [2/2]

virtual switch_button & xtd::forms::switch_button::auto_check ( bool  auto_check)
virtual

Sets a value indicating whether the checked and the switch_button's appearance are automatically changed when the switch_button is clicked.

Parameters
auto_checktrue if the checked value and the appearance of the control are automatically changed on the click event; otherwise, false. The default value is true.
Returns
Current switch_button instance.
Remarks
If auto_check is set to false, you will need to add code to update the checked in the click event handler.