Vcl.ComCtrls.TPageControl.ActivePageIndex
Delphi
property ActivePageIndex: Integer read GetActivePageIndex write SetActivePageIndex;
C++
__property int ActivePageIndex = {read=GetActivePageIndex, write=SetActivePageIndex, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TPageControl |
Description
Specifies the page currently displayed by the page control.
Use ActivePageIndex to get or set the active page by index rather than by object. The value of ActivePageIndex identifies a page in the Pages property array. Changing the value of ActivePageIndex changes the ActivePage property, and vice versa.
If there is no active page, reading ActivePageIndex gives a value of -1.
Setting ActivePageIndex to a value that is out of bounds (less than 0 or greater than PageCount - 1) results in the page control having no active page.