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

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

ToolStripButton.AutoToolTip プロパティ

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

ToolStripButton に、ToolTip既定テキストカスタム テキストのどちらを表示するかを示す値を取得または設定します

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

Dim instance As ToolStripButton
Dim value As Boolean

value = instance.AutoToolTip

instance.AutoToolTip = value
public bool AutoToolTip { get;
 set; }
public:
property bool AutoToolTip {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AutoToolTip ()

/** @property */
public void set_AutoToolTip (boolean value)

プロパティ
既定ToolTip テキスト表示する場合trueそれ以外場合false既定値true です。

解説解説

ToolStripItem にカスタムの ToolTipText を表示するには、AutoToolTip プロパティfalse設定します

使用例使用例

ToolStripButton自動的に ToolTip テキスト表示する機能無効にし、カスタムToolTipText設定するコード例を、次に示します

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Windows.Forms



Public Class Form1
   Inherits Form
   Private toolStripButton1 As ToolStripButton
   Private toolStrip1 As ToolStrip
   
   
   Public Sub New()
      InitializeComponent()
   End Sub 'New
   
   <STAThread()>  _
   Shared Sub Main()
      Application.EnableVisualStyles()
      Application.Run(New Form1())
   End Sub 'Main
   
   
   Private Sub InitializeComponent()
      Me.toolStrip1 = New System.Windows.Forms.ToolStrip()
      Me.toolStripButton1 = New System.Windows.Forms.ToolStripButton()
      Me.toolStrip1.SuspendLayout()
      Me.SuspendLayout()
      ' 
      ' toolStrip1
      ' 
      Me.toolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem()
 {Me.toolStripButton1})
      Me.toolStrip1.Location = New System.Drawing.Point(0,
 0)
      Me.toolStrip1.Name = "toolStrip1"
      Me.toolStrip1.TabIndex = 0
      Me.toolStrip1.Text = "toolStrip1"
      ' 
      ' toolStripButton1
      Me.toolStripButton1.AutoToolTip = False
      Me.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text
      Me.toolStripButton1.Name = "toolStripButton1"
      Me.toolStripButton1.Text = "Button1"
      Me.toolStripButton1.ToolTipText = "ToolTip
 for Button1."
      ' Form1
      ' 
      Me.ClientSize = New System.Drawing.Size(292,
 273)
      Me.Controls.Add(toolStrip1)
      Me.Name = "Form1"
      Me.toolStrip1.ResumeLayout(False)
      Me.ResumeLayout(False)
      Me.PerformLayout()
   End Sub 'InitializeComponent
 
End Class 'Form1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

namespace WindowsApplication7
{
    public class Form1 : Form
    {
        private ToolStripButton toolStripButton1;
        private ToolStrip toolStrip1;
    
        public Form1()
        {
            InitializeComponent();
        }
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.Run(new Form1());
        }

        private void InitializeComponent()
        {
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStrip1
            // 
            this.toolStrip1.Items.AddRange(new
 System.Windows.Forms.ToolStripItem[] {
            this.toolStripButton1});
            this.toolStrip1.Location = new
 System.Drawing.Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.TabIndex = 0;
            this.toolStrip1.Text = "toolStrip1";
            // 
            // toolStripButton1
            this.toolStripButton1.AutoToolTip = false;
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Text = "Button1";
            this.toolStripButton1.ToolTipText = "ToolTip
 for Button1.";
            // Form1
            // 
            this.ClientSize = new System.Drawing.Size(292,
 273);
            this.Controls.Add(this.toolStrip1);
            this.Name = "Form1";
            this.toolStrip1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS