ComboBox::ObjectCollection::Insert Method (Int32, Object^)
.NET Framework (current version)
Inserts an item 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 representing the item to insert.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | The item was null. |
| ArgumentOutOfRangeException | The index was less than zero. -or- The index was greater than the count of items in the collection. |
.NET Framework
Available since 1.1
Available since 1.1
Show: