CheckedListBox::CheckedIndexCollection::IList::Clear Method ()
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Removes all items from the CheckedListBox::CheckedIndexCollection. For a description of this member, see IList::Clear.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | Always thrown. |
You cannot change the CheckedListBox::CheckedIndexCollection class directly. To clear the CheckedListBox::CheckedIndexCollection, use the SetItemChecked or SetItemCheckState method.
.NET Framework
Available since 1.1
Available since 1.1
Show: