Skip to main content
Bar

TabFormControlBase.AddNewPage() Method

Creates a new TabFormPage and adds it to the TabFormControlBase.Pages collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public void AddNewPage()

Remarks

The AddNewPage method creates a new TabFormPage, adds it to the TabFormControlBase.Pages collection, and makes it the currently selected page (see TabFormControlBase.SelectedPage).

If the TabFormControlBase.ShowAddPageButton property is set to true, the built-in Add button is displayed, which allows an end-user to add a new page at runtime.

To customize the TabFormPage being created, handle the TabFormControlBase.PageCreated event.

See Also