TabControl::TabPageCollection::IList::Insert Method (Int32, Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Inserts a TabPage control into the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

private:
virtual void Insert(
	int index,
	Object^ tabPage
) sealed = IList::Insert

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.

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
Return to top
Show: