Version

Appearance Property (UltraToolTipInfo)

The Appearance of the Tooltips.
Syntax
'Declaration
 
Public Property Appearance As AppearanceBase
public AppearanceBase Appearance {get; set;}
Remarks

This appearance applies only to the control associated with this UltraToolTipInfo object. When applied to the tooltip title, this will be overridden by the ToolTipTitleAppearance property.

The tooltips will only honor the following appearance properties:

Infragistics.Win.Appearance.BackColor - The BackColor of the tooltip. The default is SystemColors.Info.

Infragistics.Win.Appearance.ForeColor - The Color of the ToolTipText and ToolTipTitle. The default is SystemColors.InfoText.

Infragistics.Win.Appearance.TextHAlign - The horizontal alignment of the ToolTipText and the ToolTipTitle. The default is HAlign.Left.

Infragistics.Win.Appearance.TextVAlign - The vertical alignment of the ToolTipTitle. This has no effect on ToolTipText; it only affects the ToolTipTitle and only when the image (if one exists) is taller than the title text. The Default is VAlign.Middle.

Infragistics.Win.Appearance.ImageBackground and related - The image used to draw the background of the tooltip. All related properties such as ImageBackGroundStyle are honored.

Infragistics.Win.Appearance.BackGradientStyle, Infragistics.Win.Appearance.BackHatchStyle, and related - The background of the tooltip can be drawn with a gradient or hatch. Properties such as BackColor2, BackGradientStyle, BackHatchStyle, etc. are all honored.

Infragistics.Win.Appearance.Image - The Image property can be used to display an image in the title of the tooltip. This may be overriden by the ToolTipImage property.

Infragistics.Win.Appearance.ImageHAlign - Determines the horizontal position of the image relative to the ToolTipTitle text.

Infragistics.Win.Appearance.ImageVAlign - The vertical alignment of the image within the title area of the tooltip. This will have no effect if the Image is taller than the ToolTipTitle text.

Example
The following code demonstrates getting the ToolTipInfo for a control and setting basic properties.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

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

        ' Set the ToolTipText.
        toolTipInfo.ToolTipText = "Enter some text here."

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

        ' Apply an image
        toolTipInfo.ToolTipImage = ToolTipImage.Info

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

        ' Apply an appearance to the Title. 
        toolTipInfo.ToolTipTitleAppearance.ForeColor = Color.Red
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void InitializeToolTipInfo()
{
	// Get the ToolTipInfo for TextBox1
	UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);
			
	// Set the ToolTipText.
	toolTipInfo.ToolTipText = "Enter some text here.";
			
	// Set the ToolTipTitle
	toolTipInfo.ToolTipTitle = "This is textBox1";
			
	// Apply an image
	toolTipInfo.ToolTipImage = ToolTipImage.Info;
			
	// Apply an appearance
	toolTipInfo.Appearance.BackColor = Color.White;
	toolTipInfo.Appearance.BackColor2 = Color.Chartreuse;
	toolTipInfo.Appearance.BackGradientStyle = GradientStyle.Circular;
	toolTipInfo.Appearance.ForeColor = Color.Black;

	// Apply an appearance to the Title. 
	toolTipInfo.ToolTipTitleAppearance.ForeColor = Color.Red;			
}
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