Vcl.ExtCtrls.TNotebook.PageIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property PageIndex: Integer read FPageIndex write SetPageIndex default 0;

C++

__property int PageIndex = {read=FPageIndex, write=SetPageIndex, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TNotebook

Description

Determines which page displays in the notebook control.

The value of PageIndex determines which page displays in the notebook. Changing the PageIndex value changes the page in the control.

Each string in the Pages property is automatically assigned a PageIndex value when the page is created. The first page receives a value of 0, the second has a value of 1, and so on. If you delete a string from the Pages property, the PageIndex values are reassigned so that the values always begin with 0 and continue to increase without any gaps between values.

To get or set the current page using its string rather than its index, use the ActivePage property instead.

See Also