Skip to main content
A newer version of this page is available. .
Bar

BarManagerProperties.LargeIconsInMenu Property

Gets or sets whether bar items in menus are painted using large or small icons.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean LargeIconsInMenu { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

true if bar items in menus are painted using large icons; otherwise, false.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Based on the LargeIconsInMenu property value, bar items in menus use either small or large icons. Small icons are specified by the BarItem.Glyph or BarItem.ImageIndex property. Large icons can be specified using the BarItem.LargeGlyph or BarItem.LargeImageIndex property. If no large icon is explicitly assigned to a bar item, the large icon is created by scaling the small icon.

If the LargeIconsInMenu property is set to Default, the size of icons in menus is controlled by the BarManagerProperties.LargeIcons property.

The LargeIconsInMenu setting can be overridden for individual menus with the help of the menu’s MenuDrawMode property (BarCustomContainerItem.MenuDrawMode and PopupMenuBase.MenuDrawMode).

See Also