Back to Devexpress

NavElement.AllowHtmlString Property

windowsforms-devexpress-dot-xtranavbar-dot-navelement-b202b9ff.md

latest2.4 KB
Original Source

NavElement.AllowHtmlString Property

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

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowHtmlString { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property AllowHtmlString As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

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

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

NavBarControl.AllowHtmlString

NavBarItemLink.AllowHtmlString

HTML-inspired Text Formatting

NavElement Class

NavElement Members

DevExpress.XtraNavBar Namespace