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

# TUNBPages

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

Represents page names and page class instances for a notebook.

## Declaration

Source position: extctrls.pp line 96

`type TUNBPages = class(TStrings)`
`protected`
`function Get(); override;` |  | Gets the name for the page stored at the specified position in the list of pages.
`function GetCount; override;` |  | Gets the number of pages defined in the page list.
`function GetObject(); override;` |  | Gets the TPage class instance stored at the specified ordinal position in the page list.
`procedure Put(); override;` |  | Ensures that the index value is valid before accessing the TPage object.
`public`
`constructor Create();` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`function Add(); override;` |  | Creates a new page instance with the specified name.
`function AddObject(); override;` |  | Adds the specified page object to the list of pages.
`procedure Clear; override;` |  | Removes all page objects stored in the list of pages.
`procedure Delete(); override;` |  | Deletes the page at the specified position in the list of pages.
`function IndexOfObject(); override;` |  | Gets the ordinal position for the specified page object in the list of pages.
`procedure Insert(); override;` |  | Inserts a page with the specified name at the given position in the list of pages.
`procedure Move(); override;` |  | Moves the active page to a position in the page list.
`end;`

## Inheritance

`TUNBPages` |  | Represents page names and page class instances for a notebook.
`TStrings`
?
`TObject`

## Description

TUNBPages is a TStrings descendant used to represent the names, TPage instances, and the owner class in TNotebook. TUNBPages extends the ancestor class by providing overridden methods needed to add, insert, delete and locate pages with a specified name or TPage class instance.

TUNBPages is used in the implementation of the TNotebook class.

## See also

TNotebook |  | TNotebook is a container for a group of related pages.