windowsforms-devexpress-dot-xtrabars-dot-barmanagerproperties-e9ba722e.md
Gets or sets whether pop-up menus display the right margin.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
public bool DrawMenuRightIndent { get; set; }
<DefaultValue(True)>
Public Property DrawMenuRightIndent As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if pop-up menus display the right margin; otherwise, false.
|
By default, pop-up menus display the right margin. See the figure below.
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;
BarAndDockingController.Default.PropertiesBar.DrawMenuRightIndent = False
The figure below illustrates the effect.
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