Back to Devexpress

BarOptions.AllowDelete Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-4b89c856.md

latest2.5 KB
Original Source

BarOptions.AllowDelete Property

Gets whether the bar can be deleted via the Customization Window at runtime.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowDelete { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(False)>
Public Overridable Property AllowDelete As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the bar can be deleted from the Customization Window at runtime; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowDelete
Bar

.OptionsBar .AllowDelete

|

Remarks

If the AllowDelete property is set to true , the end-user is able to delete the bar from the Customization Window by pressing the Delete button.

Otherwise, the button will be disabled when the bar is selected.

By unchecking/checking items in the toolbars panel, the end-user can hide or display particular bars. You can prevent the bar from being hidden by setting its BarOptions.DisableClose property to false.

Use the BarManager.AllowCustomization property to specify whether the Customization Window is available at runtime.

See Also

AllowCustomization

DisableClose

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace