Encapsulates the collection of checked items, including items in an indeterminate state, in a CheckedListBox control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Determines whether the specified item is located in the collection.
Copies the entire collection into an existing array at a specified location within the array.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns an enumerator that can be used to iterate through the CheckedItems collection.
Serves as the default hash function. (Inherited from Object.)
Returns an index into the collection of checked items.
Returns a string that represents the current object.(Inherited from Object.)
For a description of this member, see IList.Add.
For a description of this member, see IList.Clear.
For a description of this member, see Insert.
For a description of this member, see Remove.
For a description of this member, see RemoveAt.
For a description of this member, see ICollection.IsSynchronized.
For a description of this member, see ICollection.SyncRoot.
For a description of this member, see IList.IsFixedSize.
Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)
The checked items collection is a subset of all items in the CheckedListBox control; it contains only those items that are in a checked or indeterminate state.
The following table is an example of the indexed collection of items in the control (all items contained in the control).
Based on the previous example, the following table shows the indexed collection of the checked items.
The following example enumerates the checked items in the CheckedListBox.CheckedIndexCollection to see what check state an item is in. The example demonstrates using the GetItemCheckState method to set the check state of an item. The example also demonstrates using the CheckedIndices property to get the CheckedListBox.CheckedIndexCollection, and the CheckedItems property to get the .
The first loop uses the GetItemCheckState method to get the CheckState of each checked item, given the index of the item. The second loop also uses GetItemCheckState, but uses the ListBox.ObjectCollection.IndexOf method to retrieve the index for the item.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.