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

BarManagerProperties.DrawMenuRightIndent Property

Gets or sets whether pop-up menus display the right margin.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
public bool DrawMenuRightIndent { get; set; }

#Property Value

Type Default Description
Boolean true

true if pop-up menus display the right margin; otherwise, false.

#Remarks

By default, pop-up menus display the right margin. See the figure below.

BarManagerProperties_DrawMenuRightIndent_True

Set the DrawMenuRightIndent property to false to prevent the right margin from being displayed in all pop-up menus managed by the current BarAndDockingController.

BarAndDockingController.Default.PropertiesBar.DrawMenuRightIndent = false;

The figure below illustrates the effect.

BarManagerProperties_DrawMenuRightIndent_False

You can override this global setting for a particular pop-up menu and sub-menu using the PopupMenu.DrawMenuRightIndent and BarSubItem.DrawMenuRightIndent properties, respectively.

See Also