ToolTipItem.AllowHtmlText Property
Gets or sets whether HTML formatting is allowed for the item’s text (ToolTipItem.Text).
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v22.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean AllowHtmlText { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | A DefaultBoolean value that specifies whether HTML formatting is allowed in the tooltip. |
Available values:
Name | Description |
---|---|
True |
|
False |
|
Default | The default behavior determined by the control’s logic. |
Remarks
Use the following properties to enable HTML tags in tooltips:
- ToolTipController.AllowHtmlText — for all regular and super tooltips managed by this controller.
- BaseControl.AllowHtmlTextInToolTip — overrides the controller’s setting for a regular tooltip assigned to this control. To specify the tooltip’s content, use the BaseControl.ToolTip property.
- SuperToolTip.AllowHtmlText — overrides the controller’s setting for a particular super tooltip. To assign a super tooltip to a control, use the BaseControl.SuperTip property.
ToolTipItem.AllowHtmlText
— overrides the previous setting for a particular item (area) in a super tooltip. To specify the item’s content, use the ToolTipItem.Text property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowHtmlText property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.