'宣言 Public Property ToolTipImage As ToolTipImage
public ToolTipImage ToolTipImage {get; set;}
Appearance.Image または ToolTipAppearance.Image の設定を適用するためには、このプロパティを Custom または Default に設定する必要があります。
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; }