CheckBox
Wisej.Web.CheckBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents a check box control.
C#
VB.NET
1
public class CheckBox : ButtonBase, IReadOnly
Copied!
1
Public Class CheckBox
2
Inherits ButtonBase
3
Implements IReadOnly
Copied!

Constructors

CheckBox()

Initializes a new instance of the CheckBox class.

Properties

Appearance

Appearance: Returns or sets the value that determines the appearance of a CheckBox control.

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.

AutoSize

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

CheckAlign

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

Checked

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

CheckedForeColor

Color: Returns or sets the text color used when the CheckBox is checked.

CheckState

CheckState: Returns or sets the state of the CheckBox.

Invalid

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

InvalidMessage

String: Returns or sets the invalid message that is shown in the invalid tooltip.

ReadOnly

Boolean: Returns or sets whether the control is read-only.

TextAlign

ContentAlignment: Returns or sets the alignment of the text on the CheckBox control.

ThreeState

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

Methods

PerformClick()

Generates a Click event for a CheckBox.

Events

AppearanceChanged

EventHandler Fired when the value of the Appearance property changes.

CheckedChanged

EventHandler Fired when the value of the Checked property changes.

CheckStateChanged

EventHandler Fired when the value of the CheckState property changes.

ReadOnlyChanged

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

Inherited

Properties

Name
Description
From
Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element.
Control
Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element.
Control
Returns or sets the accessible role of the control that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element.
Control
AllowDrag
Returns or sets whether the control can initiate a drag-drop operation.
Control
AllowDrop
Returns or sets whether the control can accept data that the user drags onto it.
Control
AllowHtml
Returns or sets a value indicating that the control can display HTML in the Text property.
Anchor
Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
Control
Anonymous
Returns or sets whether the control receives pointer events. Anonymous controls let pointer events bubble to their parents.
Control
Sets the appearance key for the theme engine.
Control
Returns or sets whether the ellipsis character (...) appears at the right edge of the button, denoting that the text extends beyond the size of the button.
Returns or sets whether the application blocks the browser with a modal mask when this button is clicked and until the server is done processing the execution request.
AutoSize
Returns or sets a value that indicates whether the control resizes based on its contents.
BackColor
Returns or sets the background color for the control.
Control
Returns or sets the background image displayed in the control.
Control
Returns or sets the background image layout as defined in the ImageLayout enumeration.
Control
Returns or sets the background image displayed in the control.
Control
Returns a flag indicating that the control is becoming the active control.
Control
Returns or sets the BindingContext for the control.
Control
Bottom
Returns the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.
Control
Bounds
Returns or sets the size and location of the control including its non-client area, in pixels and relative to the parent control.
Control

Methods

Name
Description
From
Adds a new listener script to the event name to the client widget.
Control
Adds the CSS class name to the widget element. If the class already exists in the CssClass it's not added.
Control
Adds the specified theme state to the widget.
Control
Executes the specified delegate asynchronously.
Control
Executes the specified delegate asynchronously.
Control
Brings the control to the front of the z-order.
Control
Runs the JavaScript function within the component's context in the browser.
Control
Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.
Control
Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.
Control
Centers the position of the control within the bounds of the parent.
Control
Centers the position of the control within the bounds of the parent either horizontally, vertically or both.
Control
Indicates whether the specified control is a child of this control.
Control
Creates and register this control and all its children.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Retrieves the return value from the asynchronous operation represented by asyncResult .
Control
Runs the javaScript code within the component's context in the browser.
Control

Events

Name
Description
From
Appear
Fired after the control has been fully rendered on the client.
Control
Fired when the AutoSize property value changes.
Control
Fired when the value of the BackColor property changes.
Control
Fired when the value of the BackgroundImage property changes.
Control
Fired when the BackgroundImageLayout property changes.
Control
Fired when the value of the BecomingActiveControl property changes.
Control
Occurs when the value of the BindingContext property changes.
Control
Fired when the value of the CausesValidation property changes.
Control
Click
Fired when the control is clicked.
Control
Fired when the ClientSize property value changes.
Control
Fired when the value of the ContextMenu property changes.
Control
Fired when a new control is added to the ControlCollection.
Control
Fired when a control is made visible the first time, fully created and sent to the client.
Control
Fired when a control is removed from the ControlCollection.
Control
Fired when the value of the Cursor property changes.
Control
Disappear
Fired after the control is no longer visible on the client.
Control
Disposed
Fired when the component is disposed.
Control
Fired when the value of the Dock property changes.
Control
Fired when the control is double-clicked.
Control
DragDrop
Fired when a drag-and-drop operation is completed.
Control

Extension Methods

Name
Description
From
Sounds a tone through the computer's speaker.
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
[ToJSON(obj, formatted)](https://docs.microsoft.com/en-us/dotnet/api/system.json.tojson(obj, formatted))
Serializes the object to a JSON string.
JSON
[ToJSON(obj, options)](https://docs.microsoft.com/en-us/dotnet/api/system.json.tojson(obj, options))
Serializes the object to a JSON string.
JSON

Implements

Name
Description
Bindable components implement this interface.
IImage
Provides access to common image properties across the controls that implement this interface.
IReadOnly
Provides access to the ReadOnly property for coontrols that support the read-only mode.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.