Skip to main content
A newer version of this page is available. .
Bar

TabFormControlBase.ShowAddPageButton Property

Gets or sets the visibility of the Add (“+”) tab, which allows an end-user to add new tabs at runtime.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DefaultValue(true)]
public bool ShowAddPageButton { get; set; }

Property Value

Type Default Description
Boolean **true**

true, if the built-in Add button is visible; otherwise, false.

Remarks

The ShowAddPageButton property specifies whether the built-in Add button is visible. At run time, this button allows an end-user to add new tabs.

TabFormControlBase_ShowAddPageButton

Set this property to false, to hide the button.

In code, you can add a new TabFormPage calling the TabFormControlBase.AddNewPage method. When a new page is created at runtime, the TabFormControlBase.PageCreated event fires. Handle this event to initialize the newly created page and its content (specify the tab header, add controls, etc.).

See Also