Back to Devexpress

TdxRibbonTabGroup.Restriction Property

vcl-dxribbon-dot-tdxribbontabgroup-1c4ea1f5.md

latest1.6 KB
Original Source

TdxRibbonTabGroup.Restriction Property

Allows you to prohibit the tab group from expanding and/or collapsing.

Declaration

delphi
property Restriction: TdxRibbonTabGroupRestriction read; write; default rtgrNone;

Property Value

TypeDefault
TdxRibbonTabGroupRestrictionrtgrNone

Remarks

You can restrict certain tab group states using this property to ensure that a tab group layout remains immutable in response to Ribbon size changes in order to keep relevant commands prominently displayed.

Values include:

ValueMeaning
rtgrNoneNo restricted states – the tab group can be expanded and collapsed as described in the CanCollapse property description.
rtgrNoExpandThe tab group always remains in the collapsed state.
rtgrNoCollapseThe tab group is always in the large state and cannot be collapsed. The CanCollapse property returns False for this tab group.

The default value of the Restriction property is rtgrNone.

See Also

TdxCustomRibbon.OnTabGroupCollapsed

TdxCustomRibbon.OnTabGroupExpanded

TdxRibbonTabGroup Class

TdxRibbonTabGroup Members

dxRibbon Unit