Back to Devexpress

RibbonProperties.DefaultGlyphSize Property

windowsforms-devexpress-dot-xtrabars-dot-ribbonproperties-04ac0f9d.md

latest2.0 KB
Original Source

RibbonProperties.DefaultGlyphSize Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(16)]
public virtual int DefaultGlyphSize { get; set; }
vb
<DefaultValue(16)>
Public Overridable Property DefaultGlyphSize As Integer

Property Value

TypeDefaultDescription
Int3216

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.ImageOptions.ImageIndex property.

See Also

DefaultLargeGlyphSize

RibbonProperties Class

RibbonProperties Members

DevExpress.XtraBars Namespace