バージョン

ToolTipTextFormatted プロパティ

ツールチップに表示するフォーマット化されたテキストを取得または設定します。
シンタックス
'宣言
 
Public Property ToolTipTextFormatted As String
public string ToolTipTextFormatted {get; set;}
解説

ToolTipTextFormatted は、ToolTipTextStyleToolTipTextStyle.Formatted に設定されているか、ToolTipTextStyleToolTipTextStyle.Default に設定され ToolTipText プロパティがブランクである場合に限って使用されます。

使用例
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;
参照