Back to Devexpress

SuperToolTip.OwnerAllowHtmlText Property

windowsforms-devexpress-dot-utils-dot-supertooltip-a313bc3c.md

latest4.3 KB
Original Source

SuperToolTip.OwnerAllowHtmlText Property

Gets whether the tooltip controller allows you to use the HTML tags to format the text in this tooltip.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[DefaultValue(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool OwnerAllowHtmlText { get; protected set; }
vb
<DefaultValue(False)>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property OwnerAllowHtmlText As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the tooltip controller allows you to use the HTML tags to format the text in this tooltip; otherwise, false.

|

Remarks

Use the following properties to enable HTML tags in tooltips:

Example

This example demonstrates how to enable HTML tags for the SimpleButton and TextEdit controls.

csharp
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.
}
vb
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

AllowHtmlText

SuperToolTip Class

SuperToolTip Members

DevExpress.Utils Namespace