Bar

BarItem.RibbonStyle Property

Gets or sets the options that specify the bar item's possible states within a Ribbon Control.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Behavior")]
[SupportedByBarManager(SupportedByBarManagerKind.NonSupported)]
public RibbonItemStyles RibbonStyle { get; set; }
<DXCategory("Behavior")>
<SupportedByBarManager(SupportedByBarManagerKind.NonSupported)>
Public Property RibbonStyle As RibbonItemStyles

Property Value

Type Description
RibbonItemStyles

A set of RibbonItemStyles flags that specify the bar item's possible states within a Ribbon Control.

Remarks

The following code shows how to enable and disable RibbonItemStyles options:

idNew.RibbonStyle |= DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large;
idNew.RibbonStyle |= DevExpress.XtraBars.Ribbon.RibbonItemStyles.SmallWithText;
// ...
idNew.RibbonStyle &= ~DevExpress.XtraBars.Ribbon.RibbonItemStyles.SmallWithText;

The icon size for all "small" styles is 16x16 pixels, and 32x32 pixels for "large". To change these sizes, add a BarAndDockingController component and modify its PropertiesRibbon.DefaultGlyphSize and PropertiesRibbon.DefaultLargeGlyphSize properties.

barAndDockingController1.PropertiesRibbon.DefaultGlyphSize = 32;
barAndDockingController1.PropertiesRibbon.DefaultLargeGlyphSize = 64;
See Also