Back to Devexpress

BarItem.AllowHtmlText Property

windowsforms-devexpress-dot-xtrabars-dot-baritem-a7604d7c.md

latest3.5 KB
Original Source

BarItem.AllowHtmlText Property

Gets or sets whether the BarItem.Caption and BarItem.Description can be formatted using HTML tags.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public virtual DefaultBoolean AllowHtmlText { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Appearance")>
Public Overridable Property AllowHtmlText As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean value that specifies if HTML tags can be used to format bar item text.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Bar items support BarItem.Caption and BarItem.Description formatting using a set of HTML tags.

You can enable the HTML formatting feature for individual bar items via the BarItem.AllowHtmlText property or for all bar items within a BarManager/RibbonControl via the BarManager.AllowHtmlText/RibbonControl.AllowHtmlText property. If you enable HTML formatting for all bar items, you can still disable the feature for individual bar items by setting the BarItem.AllowHtmlText property to False.

Even if HTML text formatting is disabled for all bar items, you can enable this feature for individual bar items by setting the BarItem.AllowHtmlText property to True.

If the AllowHtmlText property is set to Default , the HTML formatting feature is controlled by the BarManager.AllowHtmlText/RibbonControl.AllowHtmlText property.

See Also

BarManager.AllowHtmlText

RibbonControl.AllowHtmlText

Caption

Description

HTML-inspired Text Formatting

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace