CheckBox

Wisej.Web.CheckBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents a check box control.

public class CheckBox : ButtonBase, IReadOnly, IValidation

Constructors

CheckBox()

Initializes a new instance of the CheckBox class.

CheckBox(text, onCheckedChanged)

Initializes a new instance of the CheckBox class.

Name
Type
Description

text

Initial text.

CheckBox(text, location, size, onCheckedChanged)

Initializes a new instance of the CheckBox class.

Name
Type
Description

text

Initial text.

location

Initial location.

size

Initial size.

Properties

Appearance

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

AutoCheck

Booleanarrow-up-right: 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)

AutoSize

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

AutoToolTip

Booleanarrow-up-right: 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 titlearrow-up-right attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.

CheckAlign

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

Checked

Booleanarrow-up-right: Returns or set a value indicating whether the CheckBox is in the checked state. (Default: False)

CheckedForeColor

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

CheckState

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

DefaultSize

Sizearrow-up-right: Returns the default size of the control.

Invalid

Booleanarrow-up-right: Returns or sets a value that indicates that the control is invalid.

InvalidMessage

Stringarrow-up-right: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

ReadOnly

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

TextAlign

ContentAlignmentarrow-up-right: Returns or sets the alignment of the text on the CheckBox control. (Default: MiddleLeft)

ThreeState

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

Methods

OnAppearanceChanged(e)

Fires the AppearanceChanged event.

Parameter
Type
Description

e

A EventArgsarrow-up-right that contains the event data.

OnCheckedChanged(e)

Fires the CheckedChanged event.

Parameter
Type
Description

e

A EventArgsarrow-up-right that contains the event data.

OnCheckStateChanged(e)

Fires the CheckStateChanged event.

Parameter
Type
Description

e

A EventArgsarrow-up-right that contains the event data.

OnClick(e)

Fires the Click event.

Parameter
Type
Description

e

A EventArgsarrow-up-right that contains the event data.

OnForeColorChanged(e)

Fires the ForeColorChanged event.

Parameter
Type
Description

e

A EventArgsarrow-up-right that contains the event data.

OnReadOnlyChanged(e)

Fires the ReadOnlyChanged event.

Parameter
Type
Description

e

An EventArgsarrow-up-right that contains the event data.

OnValidating(e)

Fires the Validating event.

Parameter
Type
Description

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

PerformClick()

Generates a Click event for a CheckBox.

Events

AppearanceChanged

EventHandlerarrow-up-right Fired when the value of the Appearance property changes.

CheckedChanged

EventHandlerarrow-up-right Fired when the value of the Checked property changes.

CheckStateChanged

EventHandlerarrow-up-right Fired when the value of the CheckState property changes.

ReadOnlyChanged

EventHandlerarrow-up-right Fired when the value of the ReadOnly property has changed.

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Defines an object that can invoke a Command.

Controls that support drag & drop operations implement this interface.

Provides access to common image properties across the controls that implement this interface.

Provides access to the ReadOnly property for coontrols that support the read-only mode.

Provides access to the validation events and properties property for controls that support validation.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?