ToolStripItem.ToolTipText プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ToolStripItem.ToolTipText プロパティの意味・解説 

ToolStripItem.ToolTipText プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

コントロールToolTip として表示されるテキスト取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Property ToolTipText As
 String
Dim instance As ToolStripItem
Dim value As String

value = instance.ToolTipText

instance.ToolTipText = value
[LocalizableAttribute(true)] 
public string ToolTipText { get;
 set; }
[LocalizableAttribute(true)] 
public:
property String^ ToolTipText {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ToolTipText ()

/** @property */
public void set_ToolTipText (String value)
public function get ToolTipText
 () : String

public function set ToolTipText
 (value : String)

プロパティ
ツールヒント テキスト文字列形式

解説解説

ToolTipText は、ShowItemToolTips が true設定されている場合にだけ機能します。AutoToolTip が true設定されている場合、項目の Text プロパティToolTipText として使用されます。

使用例使用例

ToolStripItem の Image、ImageScaling、および ImageTransparentColor を設定する方法次のコード例示しますまた、項目にカスタム ツールヒント設定および表示する方法示します

Friend WithEvents imageButton As
 ToolStripButton

Private Sub InitializeImageButtonWithToolTip()

    ' Construct the button and set the image-related properties.
    imageButton = New ToolStripButton()
    imageButton.Image = New Bitmap(GetType(Timer),
 "Timer.bmp")
    imageButton.ImageScaling = ToolStripItemImageScaling.SizeToFit

    ' Set the background color of the image to be transparent.
    imageButton.ImageTransparentColor = Color.FromArgb(0, 255, 0)

    ' Show ToolTip text, set custom ToolTip text, and turn
    ' off the automatic ToolTips.
    toolStrip1.ShowItemToolTips = True
    imageButton.ToolTipText = "Click for the current time"
    imageButton.AutoToolTip = False

    ' Add the button to the ToolStrip.
    toolStrip1.Items.Add(imageButton)

End Sub
internal ToolStripButton imageButton;

private void InitializeImageButtonWithToolTip()
{

    // Construct the button and set the image-related properties.
    imageButton = new ToolStripButton();
    imageButton.Image = new Bitmap(typeof(Timer), "Timer.bmp");
    imageButton.ImageScaling = ToolStripItemImageScaling.SizeToFit;

    // Set the background color of the image to be transparent.
    imageButton.ImageTransparentColor = Color.FromArgb(0, 255, 0);

    // Show ToolTip text, set custom ToolTip text, and turn
    // off the automatic ToolTips.
    toolStrip1.ShowItemToolTips = true;
    imageButton.ToolTipText = "Click for the current time";
    imageButton.AutoToolTip = false;

    // Add the button to the ToolStrip.
    toolStrip1.Items.Add(imageButton);

}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からToolStripItem.ToolTipText プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からToolStripItem.ToolTipText プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からToolStripItem.ToolTipText プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ToolStripItem.ToolTipText プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ToolStripItem.ToolTipText プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS