TabControl::TabPageCollection::IList::Add Method (Object^)

 

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

Adds a TabPage control to the collection.

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

private:
virtual int Add(
	Object^ value
) sealed = IList::Add

Parameters

value
Type: System::Object^

The TabPage to add to the collection.

Return Value

Type: System::Int32

The position into which the TabPage was inserted.

Exception Condition
ArgumentException

value is not a TabPage.

ArgumentNullException

value is null.

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: