Back to Devexpress

TabFormControlBase.ShowTabCloseButtons Property

windowsforms-devexpress-dot-xtrabars-dot-tabformcontrolbase-01392d28.md

latest2.3 KB
Original Source

TabFormControlBase.ShowTabCloseButtons Property

Gets or sets the visibility of close buttons in tabs.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if the close buttons are visible in tabs; otherwise, false.

|

Remarks

The TabFormPage can display the Close button. Clicking it, an end-user can hide the page from the TabForm. See the figure below.

The ShowTabCloseButtons property specifies the visibility of the Close button for all TabFormPage objects of the TabForm. You can override this setting for a particular page with the TabFormPage.ShowCloseButton property.

After the Close button is clicked, the TabFormControlBase.PageClosing event fires, allowing you to cancel the action if necessary.

See Also

ShowCloseButton

PageClosing

PageClosed

TabFormControlBase Class

TabFormControlBase Members

DevExpress.XtraBars Namespace