Back to Devexpress

BarManagerProperties.DrawMenuRightIndent Property

windowsforms-devexpress-dot-xtrabars-dot-barmanagerproperties-e9ba722e.md

latest2.5 KB
Original Source

BarManagerProperties.DrawMenuRightIndent Property

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

Declaration

csharp
[DefaultValue(true)]
public bool DrawMenuRightIndent { get; set; }
vb
<DefaultValue(True)>
Public Property DrawMenuRightIndent As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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.

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

csharp
BarAndDockingController.Default.PropertiesBar.DrawMenuRightIndent = false;
vb
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

PopupMenu.DrawMenuRightIndent

BarSubItem.DrawMenuRightIndent

BarManagerProperties Class

BarManagerProperties Members

DevExpress.XtraBars Namespace