vcl-dxribbon-dot-tdxcustomribbon-aa3be873.md
Specifies the active layout type of the Ribbon UI if a supported Ribbon UI Style is active.
property Layout: TdxRibbonLayout read; write; default TdxRibbonLayout.Default;
| Type | Default | Description |
|---|---|---|
| TdxRibbonLayout | Default |
The active layout type of the Ribbon UI.
|
You can use the Layout property to switch between layout types for the current Ribbon UI Style if it supports multiple layout types.
Refer to the TdxRibbonLayout type description for detailed information on all available options.
In v25.2, only the Office 365 Ribbon UI Style allows you to switch between Classic and Simplified styles. The Layout property has no effect on all other Ribbon UI styles.
The Ribbon control has a compact (simplified) layout when one of the following conditions is met:
Layout properties are set to rsOffice365 and TdxRibbonLayout.Simplified, respectively.A compact Ribbon layout contains only one row of buttons and does not include multi-level drop-down menus. If a user activates a submenu, it appears in the same drop-down container.
A compact Ribbon layout displays only those UI elements whose corresponding item links include ivlSmallIconWithText and ivlSmallIcon flags in the ViewLevels property value.
Tip
You can use a bar item’s Glyph property to load an icon to mark the bar item in a compact Ribbon layout.
The Layout property’s default value is TdxRibbonLayout.Default.
See Also