CheckBox
Checkbox with ToggleMode enabled.
Creates a toggle button with left-aligned text. For an independent setting, leave ButtonGroup empty and handle Toggled(bool). A shared ButtonGroup provides mutually exclusive selection and theme-based radio appearance. Use SetPressedNoSignal to load state without handlers, then explicitly refresh dependent UI; in a group this method does not reconcile peers.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CheckBoxConstructor
public CheckBox();Creates a checkbox with ToggleMode = true and left-aligned text. ButtonGroup initially null.
Theme properties
These are Theme resource keys, not C# properties. Use the matching Control GetTheme…() and AddTheme…Override() methods for each value type.
| Key and type | Description |
|---|---|
checkbox_checked_colorColor | The color of the checked icon when the checkbox is pressed. Default:Color(1, 1, 1, 1) |
checkbox_unchecked_colorColor | The color of the unchecked icon when the checkbox is not pressed. Default:Color(1, 1, 1, 1) |
check_v_offsetint | The vertical offset used when rendering the check icons (in pixels). Default:0 |
checkedTexture2D | The check icon to display when the |
checked_disabledTexture2D | The check icon to display when the |
radio_checkedTexture2D | The check icon to display when the |
radio_checked_disabledTexture2D | The check icon to display when the |
radio_uncheckedTexture2D | The check icon to display when the |
radio_unchecked_disabledTexture2D | The check icon to display when the |
uncheckedTexture2D | The check icon to display when the |
unchecked_disabledTexture2D | The check icon to display when the |