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.DefaultGlyphSize Property

Gets or sets the default size for all regular item icons within the BarManager.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual Size DefaultGlyphSize { get; set; }

#Property Value

Type Description
Size

A Size structure that is the default size for all regular item icons within the BarManager.

#Remarks

By default, regular item icons are 16x16 pixels in size, and 32x32 pixels for large icons. To override these default sizes, you can specify the DefaultGlyphSize and BarManagerProperties.DefaultLargeGlyphSize properties. This setting will affect item heights for all Bar Items with no glyphs. In other words, bar items without glyphs will have the height specified via the DefaultGlyphSize property.

To set a glyph for a BarManager item, add the required images to the BarManager.Images collection and pick a desired image for an item via the BarItem.ImageOptions.ImageIndex property.

See Also