XtraTabControl.ClosePageButtonShowMode Property

Gets or sets whether Close buttons are displayed in individual tab pages and the tab control's header.

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(ClosePageButtonShowMode.Default)]
public virtual ClosePageButtonShowMode ClosePageButtonShowMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(ClosePageButtonShowMode.Default)>
Public Overridable Property ClosePageButtonShowMode As ClosePageButtonShowMode

Property Value

Type Default Description
ClosePageButtonShowMode

Default

A ClosePageButtonShowMode value that specifies the display mode for Close buttons.

Remarks

Close buttons can be displayed in the tab control's header and individual tab pages. Use the ClosePageButtonShowMode to specify the visibility of Close buttons. If this property is set to a value that allows the Close button in the tab control's header to be displayed, this button can still be hidden via the XtraTabControl.HeaderButtonsShowMode property. See the ClosePageButtonShowMode enumeration for a description of available options.

To hide the Close button within a specific page, use the XtraTabPage.ShowCloseButton

Note that by default, clicking Close buttons has no effect. Handle the XtraTabControl.CloseButtonClick event to respond to button clicking.

Implements

DevExpress.XtraTab.IXtraTabProperties.ClosePageButtonShowMode
See Also