Skip to main content
A newer version of this page is available. .

NavElement.AllowHtmlString Property

Gets or sets whether the element’s caption is formatted using HTML tags.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v21.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Design

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowHtmlString { get; set; }

Property Value

Type Default Description
DefaultBoolean **Default**

A DefaultBoolean enumeration value that specifies whether the element’s caption is formatted using HTML tags.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The default behavior determined by the control’s logic.

Remarks

You can format the element’s caption (see NavElement.Caption) using HTML tags. By default, when the AllowHtmlString equals Default, this feature is controlled by the NavBarControl.AllowHtmlString property. Use the AllowHtmlString property to override the global setting for the current element.

For detailed information on supported HTML tags, see the HTML Text Formatting topic.

See Also