[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomTabControl.TabIndex

Contains the ordinal position for the active Tab in the control.

## Declaration

Source position: comctrls.pp line 471

`protected property TCustomTabControl.TabIndex : Integer read FPageIndex write SetPageIndex default - 1;`

## Description

TabIndex is an Integer property which contains the ordinal position for the active Tab in the tabbed control. It is the same as the PageIndex property; they read and write the same member value. The default value for the property is -1, and indicates that an active tab (page) has not been selected in the control.

Setting a new value for the property causes the OnChange event handler to be signalled when nboDoChangeOnSetIndex has been included in the Options for the control. The event handler is not signalled at design-time, during LCL component streaming, or when the control is freed.

No actions are performed in the method when the new property value is not in the range -1..PageCount-1, or when the new value is the same as the existing value.

## See also

TCustomTabControl.PageIndex |  | Ordinal position for the selected page on the tabbed control.
TCustomTabControl.OnChange |  | Event handler signalled when the active page (or tab) for the control is changed.
TCustomTabControl.Options |  | The set of Options enabled for the tabbed control.
TCTabControlOption |  | Represents the LCL options available for TCustomTabControl.