Skip to main content
A newer version of this page is available. .

BaseCheckedListBoxControl.CheckedItems Property

Gets the collection of checked item values.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[Browsable(false)]
public BaseCheckedListBoxControl.CheckedItemCollection CheckedItems { get; }

Property Value

Type Description
DevExpress.XtraEditors.BaseCheckedListBoxControl.CheckedItemCollection

A CheckedItemCollection object representing the collection of checked item values.

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CheckedItems property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also