Back to Devexpress

BarCustomContainerItem.MenuDrawMode Property

windowsforms-devexpress-dot-xtrabars-dot-barcustomcontaineritem-d8db56fe.md

latest3.5 KB
Original Source

BarCustomContainerItem.MenuDrawMode Property

Gets or sets the menu’s display mode.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(MenuDrawMode.Default)]
public virtual MenuDrawMode MenuDrawMode { get; set; }
vb
<DefaultValue(MenuDrawMode.Default)>
Public Overridable Property MenuDrawMode As MenuDrawMode

Property Value

TypeDefaultDescription
MenuDrawModeDefault

A MenuDrawMode value that specifies the menu’s display mode.

|

Available values:

NameDescription
Default

A menu is painted according to its type.

For ApplicationMenu objects, the default draw mode is affected by the ApplicationMenu.ShowRightPane property. If the ApplicationMenu.ShowRightPane option is set to false , menu items are painted as in the MenuDrawMode.LargeImagesTextDescription mode. If the option is set to true , menu items are painted as in the MenuDrawMode.LargeImagesText draw mode.

| | SmallImagesText |

Allows menu item captions and small images to be displayed.

| | LargeImagesText |

Allows menu item captions and large images to be displayed.

| | LargeImagesTextDescription |

Allows menu item captions, descriptions and large images to be displayed.

|

Remarks

The MenuDrawMode property is in effect when items that belong to the current BarCustomContainerItem object are displayed as a popup menu (or submenu). You can use this property to specify whether large or small images need to be used for menu items and whether to display menu item descriptions along with captions.

See Also

Caption

Description

Glyph

ImageIndex

LargeImage

LargeImageIndex

PaintStyle

BarCustomContainerItem Class

BarCustomContainerItem Members

DevExpress.XtraBars Namespace