Version

UltraToolTipInfo Constructor(String,ToolTipImage,String,DefaultableBoolean)

Constructor for the UltraToolTipInfo object
Syntax
'Declaration
 
Public Function New( _
   ByVal toolTipText As String, _
   ByVal toolTipImage As ToolTipImage, _
   ByVal toolTipTitle As String, _
   ByVal enabled As DefaultableBoolean _
)
public UltraToolTipInfo( 
   string toolTipText,
   ToolTipImage toolTipImage,
   string toolTipTitle,
   DefaultableBoolean enabled
)

Parameters

toolTipText
The text of the tooltip to be displayed.
toolTipImage
An enumerated value which determines which image (if any) to show in the tooltip title.
toolTipTitle
The title text of the tooltip.
enabled
Determines whether the tooltip is currently enabled.
Remarks

UltraToolTipInfo defines a set of properties that describe how an UltraToolTip is displayed. The UltraToolTipManager component manages the UltraToolTipInfo objects and uses them to determine when to show tooltips and the appearance and content of those tooltips when they are shown.

Example
The following sample code constructs a new UltraToolTipInfo object, sets some properties on it, then assigns it to a TextBox.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

Private Sub InitializeToolTipInfo()
        ' Create a new ToolTipInfo
        Dim toolTipInfo As New UltraToolTipInfo("Enter some text here.", ToolTipImage.Info, "This is textBox1", DefaultableBoolean.True)

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

        ' Set the ToolTipInfo for TextBox1. 
        Me.UltraToolTipManager1.SetUltraToolTip(Me.TextBox1, toolTipInfo)
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void InitializeToolTipInfo()
{
	// Create a new ToolTipInfo
	UltraToolTipInfo toolTipInfo = new UltraToolTipInfo("Enter some text here.", ToolTipImage.Info, "This is textBox1", DefaultableBoolean.True);
			
	// Apply an appearance
	toolTipInfo.Appearance.BackColor = Color.White;
	toolTipInfo.Appearance.BackColor2 = Color.Chartreuse;
	toolTipInfo.Appearance.BackGradientStyle = GradientStyle.Circular;
	toolTipInfo.Appearance.ForeColor = Color.Black;

	// Set the ToolTipInfo for TextBox1. 
	this.ultraToolTipManager1.SetUltraToolTip(this.textBox1, toolTipInfo);
}
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