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

# TCustomTabControl.Pages

The list of captions for the page objects on the control.

## Declaration

Source position: comctrls.pp line 504

`public property TCustomTabControl.Pages : TStrings read FAccess write SetPages;`

## Description

Pages is a read-only TStrings property which provides access to the list with the captions and page objects for the tabbed control. At run-time, the GetListClass is used to get the class type needed to create the member. The default list class type is TNBPages in TCustomTabControl.

Methods in TCustomTabControl cast the internal list to the TNBPages type when reading or writing its values.

Use InsertPage or RemovePage to maintain the page objects in the Pages property.

Use the indexed Page property to access a TCustomPage instance for a page by its ordinal position in Pages.

Use Tabs to access the list with the captions for the tabs on the control.

## See also

TCustomTabControl.Page |  | Provides indexed access to the page objects used on the tabbed control.
TCustomTabControl.InsertPage |  | Inserts the specified page into the page list and updates both the page and the control.
TCustomTabControl.RemovePage |  | Removes the page object at the specified position in the page list and updates the visible tabs on the control.
TCustomTabControl.Tabs |  | Contains the list of pages accessible in the tabbed control.
TCustomTabControl.GetListClass |  | Gets the class type used to create the page list class for the control.
TNBPages |  | Implements a list of pages used in TCustomTabControl.
TStrings