Back to Devexpress

NavBarControl.AllowHtmlString Property

windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol.md

latest2.3 KB
Original Source

NavBarControl.AllowHtmlString Property

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

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(false)]
public bool AllowHtmlString { get; set; }
vb
<DefaultValue(False)>
Public Property AllowHtmlString As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

AllowHtmlString

HtmlImages

HTML-inspired Text Formatting

NavBarControl Class

NavBarControl Members

DevExpress.XtraNavBar Namespace