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

NavBarControl.AllowHtmlString Property

Gets or sets whether the group and item captions are formatted using HTML tags.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v19.1.dll

Declaration

[DefaultValue(false)]
public bool AllowHtmlString { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the group and item captions are formatted using HTML tags; otherwise, false.

Remarks

The group and item captions (see NavElement.Caption) can be formatted using HTML tags. Set the AllowHtmlString property to true to enable this feature.

The AllowHtmlString property specifies the global setting common to all group and items in the current NavBarControl control. You can override this setting for a particular element using the NavElement.AllowHtmlString property.

See the HTML Text Formatting topic for detailed information on supported HTML tags. For example, you can use the image tag to specify an image from the NavBarControl.HtmlImages collection to be displayed next to the element caption.

See Also