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

RibbonProperties.DefaultGlyphSize Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll

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

Declaration

[DefaultValue(16)]
public virtual int DefaultGlyphSize { get; set; }

Property Value

Type Default Description
Int32 16

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

Remarks

By default, regular bar item icons are 16x16 pixels in size, and 32x32 pixels for large icons. To override these default sizes, you can specify the DefaultGlyphSize and RibbonProperties.DefaultLargeGlyphSize properties.

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

See Also