Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarOptions.AllowDelete Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowDelete { get; set; }

#Property Value

Type Default Description
Boolean false

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 Type Path 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.

Bars3_CustomizationWindow_Delete

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