PanelPages.Insert

Syntax:

Insert(<ItemNumber>, <Name>, <Title>, <Value>, <HeaderImage>)

Parameters:

<ItemNumber> (required)

Type: Number.
Position at which page is to be located.

<Name> (optional)

Type: String.
Name of the page being added.

<Title> (optional)

Type: String.
Header text of the page that is being added. If panel pages are displayed as tabs it defines a tab text.

<Value> (optional)

Type: Arbitrary.
A value linked to the page.

<HeaderImage> (optional)

Type: Picture.
Image displayed on the tab header.

Returned value:

Type: PanelPage.

Description:

Inserts a page at the desired position in the panel page collection.

Availability:

Thick client.

Example:

// AccumulationRegistersTable - value table, for which
// the panel page is created
// TableRow - current table row
PanelPage = Controls.MainPanel.Pages.Insert(
        AccumulationRegistersTable.IndexOf(TableRow), 
        TableRow.Name, 
        TableRow.Presentation);


    

1C:Enterprise Developer's Community