'Declaration Public Property ToolTipTextStyle As ToolTipTextStyle
public ToolTipTextStyle ToolTipTextStyle {get; set;}
When set to ToolTipTextStyle.Default, the property will be resolved based on the ToolTipText or ToolTipTextFormatted properties as follows:
If ToolTipText is set and ToolTipTextFormatted is not, the property resolves to ToolTipTextStyle.Raw.
If ToolTipTextFormatted is set and ToolTipText is not, the property resolves to ToolTipTextStyle.Formatted.
If both properties are set, ToolTipTextStyle.Formatted will be used.
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;
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