Vcl.ComCtrls.TTabSheet.TabIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TabIndex: Integer read GetTabIndex;

C++

__property int TabIndex = {read=GetTabIndex, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTabSheet

Description

Indicates the position of the tab sheet in the set of visible tabs in a TPageControl object.

Read TabIndex to determine where the user sees the tab sheet. A value of 0 indicates the first visible tab sheet, a value of 1 indicates the second visible tab sheet, and so on. TabIndex is always less than or equal to PageIndex. For example, a tab sheet that has a PageIndex of 3 will have a TabIndex of 2 if one of the previous tab sheets in the page control is not visible.

If a tab sheet's TabVisible property is false, the TabIndex property is -1.

See Also

Code Examples