'宣言 Public Sub SetUltraToolTip( _ ByVal control As Control, _ ByVal toolTipInfo As UltraToolTipInfo _ )
public void SetUltraToolTip( Control control, UltraToolTipInfo toolTipInfo )
コントロールのToolTipInfoがすでに存在する場合は、そのToolTipInfoが削除され、新しいものに置き換えられます。
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); }