Skip to main content
Bar

TabFormControlBase.ShowTabCloseButtons Property

Gets or sets the visibility of close buttons in tabs.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Property Value

Type Default Description
Boolean true

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.

TabFormPale_CloseButton

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