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

# TUNBPages.Move

Moves the active page to a position in the page list.

## Declaration

Source position: extctrls.pp line 115

`public procedure TUNBPages.Move(`
`CurIndex: Integer;`
`NewIndex: Integer`
`); override;`

## Description

Move is an overridden procedure in TUNBPages. It re-implements the method defined in the TStrings ancestor class. Move is used to relocate the active page in a NoteBook control to a new position in the page list.

Move uses the internal TNotebook member that is the owner of the class instance to retrieve the current page and its ordinal position.

CurIndex is set to the PageIndex for the active page in the Notebook component. NewIndex specifies the new ordinal position in the page list for the TPage instance.

The Move method in the internal page list (TObjectList) is called to move the TPage instance from using the required positions. The PageIndex for the TNotebook control is reset to re-activate the page moved in the operation.

Remark: | Move does NOT call the inherited method.

## See also

TNotebook.Pages |  | Contains the page names and TPage instances defined for the notebook control.
TNotebook.PageIndex |  | Ordinal position for the active page in the notebook control.
TNotebook.IndexOf |  | Gets the ordinal position in the list of pages for the specified page object.
TPage |  | TPage: One of the pages in a tabbed Notebook.
TStrings.Move