CheckedListBox.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 CheckedListBox.CheckedIndexCollection. For a description of this member, see IList.Add.

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

int IList.Add(
	object value
)

Parameters

value
Type: System.Object

The object to be added to the CheckedListBox.CheckedIndexCollection.

Return Value

Type: System.Int32

Exception Condition
NotSupportedException

Always thrown.

You cannot change the CheckedListBox.CheckedIndexCollection class directly. To add an item to the CheckedListBox.CheckedIndexCollection, use the SetItemChecked or SetItemCheckState method.

.NET Framework
Available since 1.1
Return to top
Show: