Skip to main content

BaseGallery.AllowHtmlText Property

Gets or sets whether captions for items and groups in this gallery can be formatted using HTML tags.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AllowHtmlText { get; set; }

Property Value

Type Default Description
Boolean false

true if captions for items and groups in this gallery can be formatted using HTML tags; otherwise, false.

Remarks

You can add different HTML tags to the gallery’s item and group captions (the GalleryItem.Caption and GalleryItemGroup.Caption properties). If the AllowHtmlText property equals true, these tags will be used to format the element caption. Otherwise, they will be displayed as plain text. The figure below illustrates a gallery with two groups. The second group’s caption, as well as its item captions is formatted using HTML tags (underline, italic, bold, color and size), while the first group and its items use default caption format settings.

BaseGallery - AllowHtmlText

See Also