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

# TTabSheet.TabIndex

Ordinal position for the tab sheet in the visible tab sheets on the page control.

## Declaration

Source position: comctrls.pp line 531

`public property TTabSheet.TabIndex : Integer read GetTabIndex;`

## Description

TabIndex is a read-only Integer property with the ordinal position for the tab sheet in the list of active pages on the parent TPageControl instance. The property value is -1 when TabVisible is set to False.

TabIndex iterates over the TTabSheet instances in PageControl up to the value in its PageIndex property. The return value contains the ordinal position for the TTabSheet in the list of pages with their TabVisible property set to True. Pages which are not visible are not considered when the ordinal value is calculated.

## See also

TTabSheet.TabVisible |  | Indicates if the tab is visible in the Parent control.
TTabSheet.PageControl |  | The TPageControl instance where the tab sheet is displayed.
TPageControl.Pages |  | Provides indexed access to the pages (tab sheets) on the page control.
TCustomPage.PageIndex |  | Ordinal position for the page in the parent control.