CheckedListBox.CheckedIndexCollection.IndexOf Method (Int32)

 

Returns an index into the collection of checked indexes.

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

public int IndexOf(
	int index
)

Parameters

index
Type: System.Int32

The index of the checked item.

Return Value

Type: System.Int32

The index that specifies the index of the checked item or -1 if the index parameter is not in the checked indexes collection. For more information, see the examples in the CheckedListBox.CheckedIndexCollection class overview.

The index parameter is the index of a checked item in the items collection. The return value is the corresponding index into the checked indexes collection.

.NET Framework
Available since 1.1
Return to top
Show: