BaseDockOptions.ShowCloseButton Property

Gets or sets whether the close button is displayed within a dock panel's caption.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowCloseButton { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowCloseButton As Boolean

Property Value

Type Default Description
Boolean

true

true to show the close button within the caption of a dock panel; otherwise false.

Property Paths

You can access this nested property as listed below:

Show 17 property paths
Library Object Type Path to ShowCloseButton
WinForms Controls SnapDockManager
.DockingOptions.ShowCloseButton
FieldListDockPanel
.Options.ShowCloseButton
ReportExplorerDockPanel
.Options.ShowCloseButton
DockManager
.DockingOptions.ShowCloseButton
DockPanel
.Options.ShowCloseButton
PanAndZoomDockPanel
.Options.ShowCloseButton
Reporting DesignDockPanel
.Options.ShowCloseButton
ErrorListDockPanel
.Options.ShowCloseButton
FieldListDockPanel
.Options.ShowCloseButton
GroupAndSortDockPanel
.Options.ShowCloseButton
PropertyGridDockPanel
.Options.ShowCloseButton
ReportExplorerDockPanel
.Options.ShowCloseButton
ReportGalleryDockPanel
.Options.ShowCloseButton
ToolBoxDockPanel
.Options.ShowCloseButton
TreeViewDesignDockPanel
.Options.ShowCloseButton
TypedDesignDockPanel
.Options.ShowCloseButton
XRDesignDockManager
.DockingOptions.ShowCloseButton

Remarks

Set the ShowCloseButton property to false to prevent a dock panel from being closed by an end-user using the "Close" button.

For more information on caption buttons, see the Header Buttons document.

See Also