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

# TCustomTabControl.ActivePageComponent

The active TCustomPage instance for the tabbed control.

## Declaration

Source position: comctrls.pp line 457

`protected property TCustomTabControl.ActivePageComponent : TCustomPage read GetActivePageComponent write SetActivePageComponent;`

## Description

ActivePageComponent is a TCustomPage property which indicates the active page component for the tabbed control.

PageIndex is used to access the page instance in Page with the property value. The property value is Nil when PageIndex contains a value that is not in the range 0..PageCount-1.

Setting a new value for the property causes the IndexOf method to be called to locate the value in the list of pages. PageIndex is updated to reflect the position for the specified page, and may contain -1 if pages are not used in the tabbed control.

Use ActivePage to get or set the active page in the control using its Caption.

## See also

TCustomTabControl.PageIndex |  | Ordinal position for the selected page on the tabbed control.
TCustomTabControl.Page |  | Provides indexed access to the page objects used on the tabbed control.
TCustomTabControl.IndexOf |  | Gets the ordinal position in the page list for the specified page object.
TCustomTabControl.ActivePage |  | Caption for the active page in the tabbed control.
TCustomPage |  | The base class for TTabSheet.