CheckedListBox

Wisej.Web.CheckedListBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Displays a ListBox in which a check box is displayed to the left of each item.

public class CheckedListBox : ListBox

Constructors

Initializes a new instance of the CheckedListBox class.

Initializes a new instance of the CheckedListBox class.

NameTypeDescription

onItemCheck

Optional ItemCheck handler.

Initializes a new instance of CheckedListBox class with the specified settings.

NameTypeDescription

dataSource

Initial DataSource.

displayMember

Initial DisplayMember.

valueMember

Initial ValueMember.

iconMember

Initial IconMember.

checkStateMember

onItemCheck

Optional ItemCheck handler.

Initializes a new instance of the CheckedListBox class with the specified settings.

NameTypeDescription

location

Initial location.

size

Initial size.

onItemCheck

Optional ItemCheck handler.

Initializes a new instance of the CheckedListBox class with the specified settings.

NameTypeDescription

location

Initial location.

size

Initial size.

dataSource

Initial DataSource.

displayMember

Initial DisplayMember.

valueMember

Initial ValueMember.

iconMember

Initial IconMember.

checkStateMember

onItemCheck

Optional ItemCheck handler.

Properties

CheckedIndexCollection: Collection of checked indexes in the CheckedListBox.

CheckedObjectCollection: Collection of checked items in the CheckedListBox.

Boolean: Returns or sets whether list items are checked when they are clicked. The default is to check the item when clicking on the checkbox icon. (Default: False)

String: Returns or sets the property to bind to the CheckState of the items in the CheckedListBox control. (Default: "")

ObjectCollection: Returns the collection of items in this CheckedListBox.

Methods

Unchecks all items in the CheckedListBox.

Returns a value indicating whether the specified item is checked.

ParameterTypeDescription

index

The index of the item.

Returns: Boolean. true if the item is checked; otherwise, false.

Throws:

  • ArgumentException The index specified is less than zero; or the index specified is greater than or equal to the count of items in the list.

Returns a value indicating the check state of the current item.

ParameterTypeDescription

index

The index of the item to get the checked value of.

Returns: CheckState. One of the CheckState values.

Throws:

  • ArgumentOutOfRangeException The index specified is less than zero; or the index specified is greater than or equal to the count of items in the list.

Sets CheckState for the item at the specified index to Checked.

ParameterTypeDescription

index

The index of the item to set the check state for.

value

true to set the item as checked; otherwise, false.

Throws:

  • ArgumentException The index specified is less than zero; or the index is greater than the count of items in the list.

Sets the check state of the item at the specified index.

ParameterTypeDescription

index

The index of the item to set the state for.

value

One of the CheckState values.

Throws:

  • ArgumentOutOfRangeException The index specified is less than zero; or the index is greater than or equal to the count of items in the list.

Events

ItemCheckEventHandler Fired after the checked state of an item changes.

EventHandler Fired when the CheckStateMember property changes.

EventHandler Fired when the user clicks the CheckedListBox control.

ItemCheckEventHandler Fired when the checked state of an item changes.

MouseEventHandler Fired when the user clicks the CheckedListBox control with the mouse.

Implements

NameDescription

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

Provides access to the LabelWrapper associated with the controls that implement this interface.

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

Provides access to the Modified property and ModifiedChanged event for controls that implement this interface.

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