Skip to main content

RibbonPageGroup.AllowTextClipping Property

Gets or sets whether to clip the group’s text when there’s not enough space to display it entirely, or to expand the group to accommodate the entire text.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowTextClipping { get; set; }

Property Value

Type Default Description
Boolean true

true if the group’s text is clipped when there’s not enough space to display it entirely; false if the group’s width is increased to accommodate the group’s entire text.

Remarks

A group’s contents determine the group’s width. Adding and removing bar item links automatically increases and reduces the group’s width. By default, the group’s text specified by the RibbonPageGroup.Text property doesn’t affect the group’s width. If the text is too long, it’s clipped.

To prevent text from being clipped, set the AllowTextClipping property to false. In this instance, the group’s width will be increased to display the entire text.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowTextClipping property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also