TabControl.GetItems Method

Definition

Gets the TabPage controls that belong to the TabControl.

Overloads

GetItems(Type)

Copies the TabPage controls in the TabControl to an array of the specified type.

GetItems()

Gets an array of TabPage controls that belong to the TabControl control.

GetItems(Type)

Source:
TabControl.cs
Source:
TabControl.cs
Source:
TabControl.cs

Copies the TabPage controls in the TabControl to an array of the specified type.

C#
protected virtual object[] GetItems(Type baseType);

Parameters

baseType
Type

The Type of the array to create.

Returns

Object[]

The TabPage controls that belong to the TabControl as an array of the specified type.

Exceptions

The type TabPage cannot be converted to baseType.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetItems()

Source:
TabControl.cs
Source:
TabControl.cs
Source:
TabControl.cs

Gets an array of TabPage controls that belong to the TabControl control.

C#
protected virtual object[] GetItems();

Returns

Object[]

An array of TabPage controls that belong to the TabControl.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10