The Checkbox is box, with a built in label, the user can place a tick mark (or check-mark) in. It is often used to enable or disable features. The Checkbox control can send a message to a connected device whenever the selection changes or be updated by commands sent from your Arduino sketch.

Checkbox control properties
Property Access Type Method Description
Checked Read/write bool SetCheck, ClearCheck The state of the checkbox
CheckedAsByte Read only byte The state of the checkbox as a byte. The value is 0 if the checkbox is checked and 0 otherwise.
CheckState Read/write CheckState SetCheck The state of a tri-state checkbox
CheckAlign Design-only ContentAlignment The location of the checkbox relative to its label
Text Read/write string SetText The checkbox label text
ThreeState Design-only bool If true, the checkbox switches between unchecked, indeterminate and checked when clicked. If false, it changes between checked and unchecked
OnCheckChangedSend Design-only string The command message to send, if any, to a connected serial device when the check state is changed.

This control also supports all the common control properties.

Leave a Comment

Start typing and press Enter to search