Back to Devexpress

XtraMdiTabPage.ShowCloseButton Property

windowsforms-devexpress-dot-xtratabbedmdi-dot-xtramditabpage-0021ac0e.md

latest2.1 KB
Original Source

XtraMdiTabPage.ShowCloseButton Property

Gets or sets whether the page contains a Close button.

Namespace : DevExpress.XtraTabbedMdi

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean ShowCloseButton { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
Public Overridable Property ShowCloseButton As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies whether a Close button is displayed in the tab.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

To display Close buttons in individual tab pages, set the XtraTabbedMdiManager.ClosePageButtonShowMode property to an appropriate value. The ShowCloseButton property allows the Close button in specific pages to be hidden. To do this, set the ShowCloseButton property to False.

See Also

ClosePageButtonShowMode

XtraMdiTabPage Class

XtraMdiTabPage Members

DevExpress.XtraTabbedMdi Namespace