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

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.2.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