TCheckBox displays a check box on the page.
You can specify the caption to display beside the check box by setting
the {@link setText Text} property. The caption can appear either on the right
or left of the check box, which is determined by the {@link setTextAlign TextAlign}
property.
To determine whether the TCheckBox component is checked, test the {@link getChecked Checked}
property. The {@link onCheckedChanged OnCheckedChanged} event is raised when
the {@link getChecked Checked} state of the TCheckBox component changes
between posts to the server. You can provide an event handler for
the {@link onCheckedChanged OnCheckedChanged} event to to programmatically
control the actions performed when the state of the TCheckBox component changes
between posts to the server.
If {@link setAutoPostBack AutoPostBack} is set true, changing the check box state
will cause postback action. And if {@link setCausesValidation CausesValidation}
is true, validation will also be processed, which can be further restricted within
a {@link setValidationGroup ValidationGroup}.
Note, {@link setText Text} is rendered as is. Make sure it does not contain unwanted characters
that may bring security vulnerabilities.