Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.AllowHtmlText Property

Gets or sets whether a BarItemLinks’ text within the current RibbonControl can be formatted using HTML tags.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public virtual bool AllowHtmlText { get; set; }

#Property Value

Type Default Description
Boolean false

true if BarItemLinks’ text within the current RibbonControl can be formatted using HTML tags; otherwise, false.

#Remarks

A BarItem can display textual information via its caption and description. Use the BarItem.Caption and BarItem.Description properties respectively to do so. The AllowHtmlText property allows you to format the text blocks for all RibbonControl’s BarItems and their BarItemLinks using HTML tags. In the figure below, the first BarItemLink’s caption is drawn in bold due to the <b></b> tag, and its description underlined via the <u></u> tag.

Ribbon Control AllowHtmlText

The BarItem.AllowHtmlText property allows you to specify whether this feature is enabled for individual Bar Items. See the HTML Text Formatting topic for the supported tags list.

See Also