CheckedListBox::CheckedIndexCollection::Contains Method (Int32)

 

Determines whether the specified index is located in the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
bool Contains(
	int index
)

Parameters

index
Type: System::Int32

The index to locate in the collection.

Return Value

Type: System::Boolean

true if the specified index from the CheckedListBox::ObjectCollection is an item in this collection; otherwise, false.

You can use this method to determine whether an index from the Items collection is in the CheckedIndices collection.

.NET Framework
Available since 1.1
Return to top
Show: