BaseCheckedListBoxControl.CheckedItems Property
Gets the collection of checked item values.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.