Table of Contents

Class CheckedListBox

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

Represents a list box control that displays a collection of items, each with an associated checkbox, allowing the user to select multiple items. This control encapsulates the native check list box implemented by the operating system. It has limited functionality. For the full featured list control, use the VirtualListBox or VirtualCheckListBox controls.

public class CheckedListBox : ListBox, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo, ICollectionChangeRouter, IListBoxActions
Inheritance
CheckedListBox
Implements

Remarks

The CheckedListBox control extends the functionality of a standard ListBox by adding checkboxes to each item. This control is commonly used in scenarios where multiple selections are required. To use this control, populate the list with items and handle user interactions as needed.

Constructors

CheckedListBox()

Initializes a new instance of the CheckedListBox class.

CheckedListBox(Control)

Initializes a new instance of the CheckedListBox class with the specified parent control.

Properties

CheckBoxVisible

Gets whether checkboxes are shown in the items.

CheckedIndices

Collection of checked indices in this control.

CheckedItems

Collection of checked items in this CheckedListBox.

Methods

CheckAllItems()

Checks all items in the collection.

CheckAllItems(bool)

Sets the checked state of all items in the collection.

GetItemChecked(int)

Determines whether the item at the specified index is checked.

OnCheckedItemsChanged(EventArgs)

Called when the list of checked items changes.

RaiseCheckedItemsChanged()

Raises the CheckedItemsChanged event and OnCheckedItemsChanged(EventArgs) method.

SetItemChecked(int, bool)

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

UncheckAllItems()

Unchecks all items in the collection.

Events

CheckedItemsChanged

Occurs when the collection of checked items changes.