ListView.CheckedIndexCollection.IList.Add Method (Object)


This API supports the product infrastructure and is not intended to be used directly from your code.

Adds an item to the collection.

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

int IList.Add(
	object value


Type: System.Object

The object to add to the ListView.CheckedIndexCollection.

Return Value

Type: System.Int32

The zero-based index where value is located in the collection.

Exception Condition

Always thrown.

You cannot change the CheckedListBox.CheckedIndexCollection class directly. To add an item to the CheckedListBox.CheckedIndexCollection, use the Checked property.

.NET Framework
Available since 1.1
Return to top