TabControl::TabPageCollection::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 TabPage control into the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index at which the TabPage should be inserted.
- tabPage
-
Type:
System::Object^
The TabPage to insert into the TabControl::TabPageCollection.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| ArgumentException | tabPage is not a TabPage. |
| ArgumentOutOfRangeException | index is less than 0, or index is greater than or equal to Count. |
This member is an explicit interface member implementation. It can be used only when the TabControl::TabPageCollection instance is cast to an IList interface.
.NET Framework
Available since 1.1
Available since 1.1
Show: