ListView::SelectedIndexCollection::IList::Add Method (Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds an item to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System::Object^
An object to be added to the ListView::SelectedIndexCollection.
Implements
IList::Add(Object^)| Exception | Condition |
|---|---|
| NotSupportedException | Always thrown. |
You cannot change the ListView::SelectedIndexCollection class directly. To add the index of a ListViewItem to the ListView::SelectedIndexCollection, use the Selected property.
.NET Framework
Available since 1.1
Available since 1.1
Show: