Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarControl.AllowHtmlString Property

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

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#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