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.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowHtmlText { get; set; }
<DXCategory("Appearance")>
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AllowHtmlText As Boolean

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