Vcl.ComCtrls.TTabSheet.PageIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property PageIndex: Integer read GetPageIndex write SetPageIndex stored False;

C++

__property int PageIndex = {read=GetPageIndex, write=SetPageIndex, stored=false, nodefault};

Properties

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

Description

Indicates the index of the tab sheet in the list of tab sheets maintained by the page control.

Use PageIndex to determine where the tab sheet sits in its page control. Each tab sheet in a page control is automatically assigned a PageIndex when it is inserted in the page control. The first tab sheet receives a value of 0, the second has a value of 1, and so on. PageIndex values are reassigned if tab sheets are deleted or moved.

To access a particular tab sheet given its index value, use the indexed Pages property of the TPageControl object.

See Also


Code Examples