windowsforms-devexpress-dot-utils-dot-tooltipcontroller.md
Gets or sets whether HTML formatting tags can be used to format text in tooltips.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool AllowHtmlText { get; set; }
<DefaultValue(False)>
<DXCategory("Appearance")>
Public Property AllowHtmlText As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if HTML tags can be used to format text in tooltips; otherwise, false.
|
Use the following properties to enable HTML tags in tooltips:
ToolTipController.AllowHtmlText — for all regular and super tooltips managed by this controller. Assign the ToolTipController component to the control’s ToolTipController property.This example demonstrates how to enable HTML tags for the SimpleButton and TextEdit controls.
toolTipController1.AllowHtmlText = true;
simpleButton1.ToolTipController = toolTipController1;
textEdit1.ToolTipController = toolTipController1;
simpleButton1.ToolTip = "I\'ve agree to the <href=www.devexpress.com>terms and conditions</href>.
I want to <b>subscribe</b> to the newsletter.";
textEdit1.ToolTip = "Enter your <b>valid</b> e-mail address.";
//...
private void toolTipController1_HyperlinkClick(object sender, HyperlinkClickEventArgs e) {
// Handle a click on a hyperlink displayed in a tooltip.
}
toolTipController1.AllowHtmlText = True
simpleButton1.ToolTipController = toolTipController1
textEdit1.ToolTipController = toolTipController1
simpleButton1.ToolTip = "I've agree to the <href=www.devexpress.com>terms and conditions</href>.
I want to <b>subscribe</b> to the newsletter."
textEdit1.ToolTip = "Enter your <b>valid</b> e-mail address."
' ...
Private Sub toolTipController1_HyperlinkClick(ByVal sender As Object, ByVal e As HyperlinkClickEventArgs)
' Handle a click on a hyperlink displayed in a tooltip.
End Sub
See Also