CheckedListBox.CheckedIndexCollection.Contains Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: