Skip to main content
Version: 4.1

CheckBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a check box control.

public class CheckBox : ButtonBase, IReadOnly, IValidation

Constructors

Instance member CheckBox()

Initializes a new instance of the CheckBox class.

Instance member CheckBox(text, onCheckedChanged)

Initializes a new instance of the CheckBox class.

NameTypeDescription
textStringInitial text.
onCheckedChangedAction<Object, EventArgs>Optional CheckedChanged handler.

Instance member CheckBox(text, location, size, onCheckedChanged)

Initializes a new instance of the CheckBox class.

NameTypeDescription
textStringInitial text.
locationPointInitial location.
sizeSizeInitial size.
onCheckedChangedAction<Object, EventArgs>Optional CheckedChanged handler.

Properties

Instance member Appearance

Appearance: Returns or sets the value that determines the appearance of a CheckBox control. (Default: Normal)

Instance member AutoCheck

Boolean: Returns or set a value indicating whether the Checked or CheckState values and the CheckBox's appearance are automatically changed when the CheckBox is clicked. (Default: True)

Instance member AutoSize

Boolean: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: True)

Instance member AutoToolTip

Boolean: Returns or sets whether a tooltip is displayed when the text extends beyond the size of the control. (Default: False)

The auto tooltip is set on the browser using the title attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.

Instance member CheckAlign

ContentAlignment: Returns or sets the horizontal and vertical alignment of the check mark on a CheckBox control. (Default: MiddleLeft)

Instance member Checked

Boolean: Returns or set a value indicating whether the CheckBox is in the checked state. (Default: False)

Instance member CheckedForeColor

Color: Returns or sets the text color used when the CheckBox is checked. (Default: Color [Empty])

Instance member CheckState

CheckState: Returns or sets the state of the CheckBox. (Default: Unchecked)

Protected member DefaultSize

Size: Returns the default size of the control.

Instance member Invalid

Boolean: Returns or sets a value that indicates that the control is invalid.

Instance member InvalidMessage

String: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

Instance member ReadOnly

Boolean: Returns or sets whether the control is read-only. (Default: False)

Instance member TextAlign

ContentAlignment: Returns or sets the alignment of the text on the CheckBox control. (Default: MiddleLeft)

Instance member ThreeState

Boolean: Returns or sets whether the CheckBox will allow three check states rather than two. (Default: False)

Methods

Protected member OnAppearanceChanged(e)

Fires the AppearanceChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnCheckedChanged(e)

Fires the CheckedChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnCheckStateChanged(e)

Fires the CheckStateChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnClick(e)

Fires the Click event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnForeColorChanged(e)

Fires the ForeColorChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnReadOnlyChanged(e)

Fires the ReadOnlyChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnValidating(e)

Fires the Validating event.

ParameterTypeDescription
eCancelEventArgsA EventArgs that contains the event data.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member PerformClick()

Generates a Click event for a CheckBox.

Events

Instance member AppearanceChanged

EventHandler Fired when the value of the Appearance property changes.

Instance member CheckedChanged

EventHandler Fired when the value of the Checked property changes.

Instance member CheckStateChanged

EventHandler Fired when the value of the CheckState property changes.

Instance member ReadOnlyChanged

EventHandler Fired when the value of the ReadOnly property has changed.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
ICommandSourceDefines an object that can invoke a Command.
IDropTargetControls that support drag & drop operations implement this interface.
IImageProvides access to common image properties across the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IValidationProvides access to the validation events and properties property for controls that support validation.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.