Code example for ToggleButton

Methods: isCheckedgetText