TabControl::TabPageCollection::Item Property (Int32)

 

Gets or sets a TabPage in the collection.

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

public:
property TabPage^ default[
	int index
] {
	virtual TabPage^ get(int index);
	virtual void set(int index, TabPage^ value);
}

Parameters

index
Type: System::Int32

The zero-based index of the tab page to get or set.

Property Value

Type: System.Windows.Forms::TabPage^

The TabPage at the specified index.

Exception Condition
ArgumentOutOfRangeException

index is less than zero or greater than the highest available index.

.NET Framework
Available since 1.1
Return to top
Show: