'Declaration Public Property Appearance As AppearanceBase
public AppearanceBase Appearance {get; set;}
This appearance applies to all ToolTips displayed by this component. It may be overriden by the Appearance on the UltraToolTipInfo. Also, 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.
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."; }
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