Table of Contents

Class CheckListBox

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a control to display a list of items with checkboxes. Please consider using VirtualCheckListBox instead of this simple control.

[ControlCategory("Common")]
public class CheckListBox : ListBox, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IReadOnlyStrings
Inheritance
CheckListBox
Implements

Remarks

Examples of how a CheckListBox can look on different platforms:

Properties

CheckedIndex

Gets or sets the zero-based index of the currently checked item in a ListBox.

CheckedIndices

Gets a collection that contains the zero-based indexes of all currently checked items in the CheckListBox.

CheckedIndicesDescending

Gets a collection that contains the zero-based indexes of all currently checked items in the CheckListBox.

ControlKind

Returns control identifier.

HasBorder

Gets or sets a value indicating whether the control has a border.

Methods

CheckItems(params int[])

Checks items with specified indexes in the CheckListBox.

ClearChecked()

Unchecks all items in the ListBox.

CreateHandler()

Creates a handler for the control.

OnCheckedChanged(EventArgs)

Called when when the checkbox state of the item has changed.

OnHandlerAttached(EventArgs)

Called after a new control handler is attached.

RaiseCheckedChanged(EventArgs)

Raises the CheckedChanged event and calls OnCheckedChanged(EventArgs).

RemoveCheckedItems()

Removes checked items from the CheckListBox.

RemoveItems(IReadOnlyList<int>)

Removes items from the control.

SetChecked(int, bool)

Checks or clears the check state for the specified item in a CheckListBox.

Events

CheckedChanged

Occurs when the checkbox state of the item has changed.