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

# TNBPages

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a list of pages used in TCustomTabControl.

## Declaration

Source position: comctrls.pp line 300

`type TNBPages = class(TNBBasePages)`
`protected`
`function Get(); override;` |  | Implements read access to values for the Strings property.
`function GetCount; override;` |  | Gets the value for the Count property.
`function GetObject(); override;` |  | Gets the value for the indexed Objects property.
`procedure Put(); override;` |  | Re-implements the method used to store a string value at a specified position in the list.
`function IndexOfPage(); override;` |  | Gets the position in PageList for the specified page.
`procedure InsertPage(); override;` |  | Inserts a page instance at the specified position in the page list.
`procedure DeletePage(); override;` |  | Deletes the page stored at the specified position in the page list.
`function GetPage(); override;` |  | Gets the page stored at the specified position in PageList.
`property PageList: TListWithEvent; [r]` |  | List with the TCustomPage instances for the class instance.
`property Notebook: TCustomTabControl; [r]` |  | Provides a reference to the control which owns the pages.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`procedure Clear; override;` |  | Removes all pages stored in the class instance.
`procedure Delete(); override;` |  | Deletes the page stored at the specified position in the page list.
`procedure Insert(); override;` |  | Inserts a new page with the given name at the specified position in PageList.
`procedure Move(); override;` |  | Moves a page from the current index to a new position in PageList.
`end;`

## Inheritance

`TNBPages` |  | Implements a list of pages used in TCustomTabControl.
`TNBBasePages` |  | Ancestor for the TNBPages class.
`TStrings`
?
`TObject`

## Description

TNBPages is a TNBBasePages descendant which implements a list of pages used in TCustomTabControl.

TNBPages extends the ancestor class to include properties for the TCustomTabControl which owns the list of pages (Notebook), and the internal list used to store the TCustomPage instances (PageList). It implements the abstract virtual methods defined in the ancestor, and provides additional methods to maintain the pages in PageList.

## See also

TCustomPage |  | The base class for TTabSheet.
TCustomTabControl |  | Implements the base class for tabbed controls in the LCL.
TNBBasePages |  | Ancestor for the TNBPages class.