Skip to main content

BaseCheckedListBoxControl.CheckedItems Property

Gets the collection of checked item values.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.1.dll

NuGet Package: DevExpress.Win.Navigation


public BaseCheckedListBoxControl.CheckedItemCollection CheckedItems { get; }

Property Value

Type Description

A CheckedItemCollection object representing the collection of checked item values.


The CheckedItems property specifies a collection of the values of checked items. If the ListBox works in unbound mode, an item’s value is specified by the ListBoxItem.Value property. In bound mode, item values are retrieved from the field specified by the BaseListBoxControl.ValueMember property.

The CheckedItems collection is read-only, which means that you cannot add, delete or modify its elements to change an item’s check state.

If you only need to obtain indexes of checked items, use the BaseCheckedListBoxControl.CheckedIndices property.

In unbound mode, to change an item’s check state, use the item’s CheckedListBoxItem.CheckState property. Individual items can be accessed via the control’s BaseCheckedListBoxControl.Items property using index notation.

In bound mode, to access particular items, use the BaseListBoxControl.GetItem method. To get and set an item’s check state, use the BaseCheckedListBoxControl.GetItemChecked, BaseCheckedListBoxControl.GetItemCheckState, BaseCheckedListBoxControl.SetItemChecked and BaseCheckedListBoxControl.SetItemCheckState methods.

See Also