Skip to main content
Version: 4.1

CheckedListBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class CheckedListBox : ListBox

Constructors

Instance member CheckedListBox()

Initializes a new instance of the CheckedListBox class.

Instance member CheckedListBox(onItemCheck)

Initializes a new instance of the CheckedListBox class.

NameTypeDescription
onItemCheckAction<Object, ItemCheckEventArgs>Optional ItemCheck handler.

Instance member CheckedListBox(dataSource, displayMember, valueMember, iconMember, checkStateMember, onItemCheck)

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

NameTypeDescription
dataSourceObjectInitial DataSource.
displayMemberStringInitial DisplayMember.
valueMemberStringInitial ValueMember.
iconMemberStringInitial IconMember.
checkStateMemberStringInitial CheckStateMember.
onItemCheckAction<Object, ItemCheckEventArgs>Optional ItemCheck handler.

Instance member CheckedListBox(location, size, onItemCheck)

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

NameTypeDescription
locationPointInitial location.
sizeSizeInitial size.
onItemCheckAction<Object, ItemCheckEventArgs>Optional ItemCheck handler.

Instance member CheckedListBox(location, size, dataSource, displayMember, valueMember, iconMember, checkStateMember, onItemCheck)

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

NameTypeDescription
locationPointInitial location.
sizeSizeInitial size.
dataSourceObjectInitial DataSource.
displayMemberStringInitial DisplayMember.
valueMemberStringInitial ValueMember.
iconMemberStringInitial IconMember.
checkStateMemberStringInitial CheckStateMember.
onItemCheckAction<Object, ItemCheckEventArgs>Optional ItemCheck handler.

Properties

Instance member CheckedIndices

CheckedIndexCollection: Collection of checked indexes in the CheckedListBox.

Instance member CheckedItems

CheckedObjectCollection: Collection of checked items in the CheckedListBox.

Instance member CheckOnClick

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)

Instance member CheckStateMember

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

Instance member Items

ObjectCollection: Returns the collection of items in this CheckedListBox.

Instance member Separator

String: Returns or sets the separator used to concatenate and parse multiple checked values for the Text property. (Default: ",")

Methods

Instance member ClearChecked()

Unchecks all items in the CheckedListBox.

Protected member CreateItemCollection()

Creates a new instance of the item collection.

Returns: ObjectCollection. A ObjectCollection that represents the new item collection.

Instance member GetItemChecked(index)

Returns a value indicating whether the specified item is checked.

ParameterTypeDescription
indexInt32The 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.

Instance member GetItemCheckState(index)

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

ParameterTypeDescription
indexInt32The 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.

Protected member OnAfterItemCheck(e)

Fires the AfterItemCheck event.

ParameterTypeDescription
eItemCheckEventArgsAn ItemCheckEventArgs that contains the event data.

Protected member OnCheckStateMemberChanged(e)

Fires the CheckStateMemberChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnItemCheck(e)

Fires the ItemCheck event.

ParameterTypeDescription
eItemCheckEventArgsAn ItemCheckEventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member RefreshItem(index)

Refreshes the item contained at the specified location.

ParameterTypeDescription
indexInt32The location of the item to refresh.

Protected member RefreshItems()

Reloads all the CheckedListBox items from the data source.

Instance member SetItemChecked(index, value)

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

ParameterTypeDescription
indexInt32The index of the item to set the check state for.
valueBooleantrue 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.

Instance member SetItemCheckState(index, value)

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

ParameterTypeDescription
indexInt32The index of the item to set the state for.
valueCheckStateOne 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.

Protected member SetItemCore(index, value)

Sets the object with the specified index in the derived class.

ParameterTypeDescription
indexInt32The array index of the object.
valueObjectThe object.

Protected member SetItemsCore(value)

Sets the specified array of objects in a collection in the derived class.

ParameterTypeDescription
valueIListAn array of items.

Events

Instance member AfterItemCheck

ItemCheckEventHandler Fired after the checked state of an item changes.

Instance member CheckStateMemberChanged

EventHandler Fired when the CheckStateMember property changes.

Instance member Click

EventHandler Fired when the user clicks the CheckedListBox control.

Instance member ItemCheck

ItemCheckEventHandler Fired when the checked state of an item changes.

Instance member MouseClick

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

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
ILabelProvides access to the LabelWrapper associated with the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IModifiedProvides access to the Modified property and ModifiedChanged event for controls that implement this interface.
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.