Version

ToolTipTextFormatted Property

Gets / sets the formatted text to be displayed in the tooltip.
Syntax
'Declaration
 
Public Property ToolTipTextFormatted As String
public string ToolTipTextFormatted {get; set;}
Remarks

ToolTipTextFormatted is only used when ToolTipTextStyle is set to ToolTipTextStyle.Formatted or when the when ToolTipTextStyle is set to ToolTipTextStyle.Default and the ToolTipText property is blank.

Example
The following code demonstrates the use of the ToolTipTextFormatted and ToolTipTextStyle properties.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

' Set the style of all tooltips to Formatted so they will use Formatted text by default.
' This setting can be overridden on any UltraToolTipInfo.
Me.UltraToolTipManager1.ToolTipTextStyle = ToolTipTextStyle.Formatted

' Get the tooltip info for the first text box.
Dim toolTipInfo As UltraToolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox1)

' Give the tooltip some formatted text.
toolTipInfo.ToolTipTextFormatted = "This is a <span style=""font-weight:bold;"">formatted</span>&edsp;<span style=""color:Red;"">tooltip</span>."

' Get the tooltip info for the second text box.
Dim toolTipInfo2 As UltraToolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox2)

' Set the (unformatted) ToolTipText
toolTipInfo2.ToolTipText = "This is an unformatted tooltip"

' Since the ToolTipTextStyle of the UltraToolTipManager is set to Formatted, textBox2 will
' not show a tooltip, since it's ToolTipTextFormatted property has not been set. In order to
' show an Unformatted tooltip, we must set the ToolTipTextStyle on it's UltraToolTipInfo to
' override the UltraToolTipManager.ToolTipTextStyle setting. 
toolTipInfo2.ToolTipTextStyle = ToolTipTextStyle.Raw
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

// Set the style of all tooltips to Formatted so they will use Formatted text by default.
// This setting can be overridden on any UltraToolTipInfo.
this.ultraToolTipManager1.ToolTipTextStyle = ToolTipTextStyle.Formatted;

// Get the tooltip info for the first text box.
UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);

// Give the tooltip some formatted text.
toolTipInfo.ToolTipTextFormatted = "This is a <span style=\"font-weight:bold;\">formatted</span>&edsp;<span style=\"color:Red;\">tooltip</span>.";

// Get the tooltip info for the second text box.
UltraToolTipInfo toolTipInfo2 = this.ultraToolTipManager1.GetUltraToolTip(this.textBox2);

// Set the (unformatted) ToolTipText
toolTipInfo2.ToolTipText = "This is an unformatted tooltip";

// Since the ToolTipTextStyle of the UltraToolTipManager is set to Formatted, textBox2 will
// not show a tooltip, since it's ToolTipTextFormatted property has not been set. In order to
// show an Unformatted tooltip, we must set the ToolTipTextStyle on it's UltraToolTipInfo to
// override the UltraToolTipManager.ToolTipTextStyle setting. 
toolTipInfo2.ToolTipTextStyle = ToolTipTextStyle.Raw;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also