IPageControlSheets.Add

Syntax

Add(Sheet: IPageControlSheet);

Parameters

Sheet. A new page that will be added to the end of the component page collection.

Description

The Add method adds a page to the collection of component pages.

Comments

A page is added to the end of the collection.

Example

Executing the example requires a form with the Button1 button and the Panel component named Panel1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Sheets: IPageControlSheets;
    Sheet: IPageControlSheet;
Begin
    Sheets := PageControl1.Pages;
    Sheet := New PageControlSheet.Create;
    Sheet.Text := "Additional settings";
    Sheets.Add(Sheet);
End Sub Button1OnClick;

Clicking the button adds a new page to the pages collection. A page tab will be placed in the end of the list.

See also:

IPageControlSheets