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

ContextItemCollectionOptions.AllowHtmlTextInToolTip Property

Gets or sets whether context items‘ tooltips support HTML tags.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowHtmlTextInToolTip { get; set; }

Property Value

Type Default Description
DefaultBoolean **Default**

True, to enable HTML formatting in DevExpress.Utils.ContextItem tooltips; False, to disable; Default, to use the ToolTipController.AllowHtmlText setting.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Show 49 property paths
Object Type Path to AllowHtmlTextInToolTip
AccordionControl
.ContextButtonsOptions .AllowHtmlTextInToolTip
TileBar
.ContextButtonOptions .AllowHtmlTextInToolTip
BaseCheckedListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
BaseDateControl
.ContextButtonOptions .AllowHtmlTextInToolTip
BaseImageListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
BaseListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
CameraControl
.ContextButtonOptions .AllowHtmlTextInToolTip
CheckedListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
CalendarControl
.ContextButtonOptions .AllowHtmlTextInToolTip
CalendarControlBase
.ContextButtonOptions .AllowHtmlTextInToolTip
ImageSlider
.ContextButtonOptions .AllowHtmlTextInToolTip
DateControl
.ContextButtonOptions .AllowHtmlTextInToolTip
ImageListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
ListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemBaseSpinEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemBlobBaseEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemBreadCrumbEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemCalcEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemCheckedComboBoxEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemColorEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemColorPickEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemComboBox
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemDateEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemDateTimeOffsetEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemFontEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemGridLookUpEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemGridLookUpEditBase
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemImageComboBox
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemImageEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemLookUpEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemLookUpEditBase
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemMemoExEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemMRUEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemPictureEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemPopupBase
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemPopupBaseAutoSearchEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemPopupContainerEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemPopupGalleryEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemSearchControl
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemSearchLookUpEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemSpinEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemTimeEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemTimeSpanEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
RepositoryItemTreeListLookUpEdit
.ContextButtonOptions .AllowHtmlTextInToolTip
SvgImageBox
.ContextButtonOptions .AllowHtmlTextInToolTip
TileControl
.ContextButtonOptions .AllowHtmlTextInToolTip
TileViewOptionsKanban
.GroupHeaderContextButtonOptions .AllowHtmlTextInToolTip
DateNavigator
.ContextButtonOptions .AllowHtmlTextInToolTip
ResourcesCheckedListBoxControl
.ContextButtonOptions .AllowHtmlTextInToolTip

Remarks

You can use HTML tags to format ContextItem tooltips. The code below demonstrates how to change a ContextButton‘s tooltip text color.

using DevExpress.Utils;
// ...
pictureEdit1.Properties.ContextButtonOptions.AllowHtmlTextInToolTip = DefaultBoolean.True;
pictureEdit1.Properties.ContextButtons[0].ToolTip = "<color=red>Select</color>";

The image below demonstrates the result.

HtmlToolTip

Alternatively, you can set AllowHtmlText to true in the Properties window.

PropertiesHtmlToolTip

Then click the ContextButtons ellipsis button to open the Collection Editor.

ContextButtonsCollection

Specify the ContextButton‘s tooltip text and formatting.

EditorHtmlToolTip

See Also