ListViewItem::ListViewSubItemCollection::IList::Insert Method (Int32, Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Inserts a subitem into the collection at the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index location where the item is inserted.
- item
-
Type:
System::Object^
An object that represents the subitem to insert into the collection.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| ArgumentException | item is not a ListViewItem::ListViewSubItem. |
| ArgumentOutOfRangeException | The index parameter is less than 0 or greater than or equal to the value of the Count property of the ListViewItem::ListViewSubItemCollection. |
.NET Framework
Available since 1.1
Available since 1.1
Show: