バージョン

ToolTipTitleAppearance プロパティ (UltraToolTipManager)

ツールチップタイトルの外観。
シンタックス
'宣言
 
Public Property ToolTipTitleAppearance As AppearanceBase
public AppearanceBase ToolTipTitleAppearance {get; set;}
解説

この外観は、このコンポーネントで表示されるすべてのツールチップのタイトルに適用されます。この外観の設定はいずれも ToolTipTitleAppearance プロパティによってオーバーライドされる場合があります。

ツールヒントでは以下の外観プロパティのみが適用されます。

Infragistics.Win.Appearance.ForeColor - ToolTipText および ToolTipTitle の色。デフォルトは SystemColors.InfoText です。

Infragistics.Win.Appearance.TextHAlign - ToolTipText および ToolTipTitle を水平方向に揃える。デフォルトは HAlign.Left です。

Infragistics.Win.Appearance.TextVAlign - ToolTipTitle の垂直方向。これはToolTipTextには作用しません。 ToolTipTitleのみに作用し、イメージが存在する場合にその高さがタイトルテキストより高い場合のみ作用します。デフォルトは VAlign.Middle です。

Infragistics.Win.Appearance.Image - Imageプロパティを使用して、ツールチップのタイトルにイメージを表示できます。このプロパティは ToolTipImage プロパティによってオーバーライドされる場合があります。

Infragistics.Win.Appearance.ImageHAlign - ToolTipTitle のテキストに対するイメージの水平位置を決定します。

Infragistics.Win.Appearance.ImageVAlign - ツールチップ タイトル領域内の画像の垂直方向の配置。Imageの高さがToolTipTitleのテキストより高い場合、このプロパティは作用しません。

使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

Private Sub InitializeToolTips()
        ' Set the InitialDelay to 1 second.
        Me.UltraToolTipManager1.InitialDelay = 1000

        ' Set the AutoPopDelay to 10 seconds. 
        Me.UltraToolTipManager1.AutoPopDelay = 10000

        ' Set the DisplayStyle to BalloonTip.
        Me.UltraToolTipManager1.DisplayStyle = ToolTipDisplayStyle.BalloonTip

        ' Enable the ToolTipManager
        Me.UltraToolTipManager1.Enabled = True

        ' Assign an Image to all tooltips. 
        Me.UltraToolTipManager1.ToolTipImage = ToolTipImage.Info

        ' Apply a title to all tooltips. 
        Me.UltraToolTipManager1.ToolTipTitle = "This is the title of the tooltip."

        ' Apply an appearance
        Me.UltraToolTipManager1.Appearance.BackColor = Color.White
        Me.UltraToolTipManager1.Appearance.BackColor2 = Color.Chartreuse
        Me.UltraToolTipManager1.Appearance.BackGradientStyle = GradientStyle.Circular
        Me.UltraToolTipManager1.Appearance.ForeColor = Color.Black

        ' Apply an appearance to the Title. 
        Me.UltraToolTipManager1.ToolTipTitleAppearance.ForeColor = Color.Red

        ' Get the ToolTipInfo for TextBox1
        Dim toolTipInfo As UltraToolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox1)

        ' Set the ToolTipText
        toolTipInfo.ToolTipText = "This is textBox1."

        ' Get the ToolTipInfo for TextBox2
        toolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox2)

        ' Set the ToolTipText
        toolTipInfo.ToolTipText = "This is textBox2."

        ' Get the ToolTipInfo for TextBox3
        toolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox3)

        ' Set the ToolTipText
        toolTipInfo.ToolTipText = "This is textBox3."
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void InitializeToolTips()
{
	// Set the InitialDelay to 1 second.
	this.ultraToolTipManager1.InitialDelay = 1000;

	// Set the AutoPopDelay to 10 seconds. 
	this.ultraToolTipManager1.AutoPopDelay = 10000;

	// Set the DisplayStyle to BalloonTip.
	this.ultraToolTipManager1.DisplayStyle = ToolTipDisplayStyle.BalloonTip;

	// Enable the ToolTipManager
	this.ultraToolTipManager1.Enabled = true;

	// Assign an Image to all tooltips. 
	this.ultraToolTipManager1.ToolTipImage = ToolTipImage.Info;

	// Apply a title to all tooltips. 
	this.ultraToolTipManager1.ToolTipTitle = "This is the title of the tooltip.";
			
	// Apply an appearance
	this.ultraToolTipManager1.Appearance.BackColor = Color.White;
	this.ultraToolTipManager1.Appearance.BackColor2 = Color.Chartreuse;
	this.ultraToolTipManager1.Appearance.BackGradientStyle = GradientStyle.Circular;
	this.ultraToolTipManager1.Appearance.ForeColor = Color.Black;

	// Apply an appearance to the Title. 
	this.ultraToolTipManager1.ToolTipTitleAppearance.ForeColor = Color.Red;
        
	// Get the ToolTipInfo for TextBox1
	UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);
						
	// Set the ToolTipText
	toolTipInfo.ToolTipText = "This is textBox1.";

	// Get the ToolTipInfo for TextBox2
	toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox2);
					
	// Set the ToolTipText
	toolTipInfo.ToolTipText = "This is textBox2.";

	// Get the ToolTipInfo for TextBox3
	toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox3);
						
	// Set the ToolTipText
	toolTipInfo.ToolTipText = "This is textBox3.";
}
参照