Back to Devexpress

TabFormControlBase.ShowAddPageButton Property

windowsforms-devexpress-dot-xtrabars-dot-tabformcontrolbase-f9982ae0.md

latest2.2 KB
Original Source

TabFormControlBase.ShowAddPageButton Property

Gets or sets if the Add Page ( + ) button that allows a user to add a new tab is visible.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
public bool ShowAddPageButton { get; set; }
vb
<DefaultValue(True)>
Public Property ShowAddPageButton As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Remarks

The ShowAddPageButton property specifies whether the built-in Add Page ( + ) button is visible. This button allows a user to add a new tab.

You can call the AddNewPage() method to add a new page to the form in code. When a new page is created, the PageCreated event fires. Handle this event to initialize the newly created page and its content (specify the tab header, add controls, etc.).

See Also

AllowMoreTabsButton

AddPageButton

PageCreated

AddNewPage()

TabFormControlBase Class

TabFormControlBase Members

DevExpress.XtraBars Namespace