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

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

ToolStripItem.DisplayStyle プロパティ

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

テキストおよびイメージが ToolStripItem に表示されるかどうか取得または設定します

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

Public Overridable Property
 DisplayStyle As ToolStripItemDisplayStyle
Dim instance As ToolStripItem
Dim value As ToolStripItemDisplayStyle

value = instance.DisplayStyle

instance.DisplayStyle = value
public virtual ToolStripItemDisplayStyle DisplayStyle { get;
 set; }
public:
virtual property ToolStripItemDisplayStyle DisplayStyle {
    ToolStripItemDisplayStyle get ();
    void set (ToolStripItemDisplayStyle value);
}
/** @property */
public ToolStripItemDisplayStyle get_DisplayStyle ()

/** @property */
public void set_DisplayStyle (ToolStripItemDisplayStyle
 value)
public function get DisplayStyle
 () : ToolStripItemDisplayStyle

public function set DisplayStyle
 (value : ToolStripItemDisplayStyle)

プロパティ
ToolStripItemDisplayStyle 値の 1 つ既定値は ImageAndText です。

使用例使用例

ToolStripButton 用の Image、ImageAlign、DisplayStyle、および TextAlign の各プロパティコード例次に示します。この例は ToolStripButton クラス概要取り上げているコード例一部です。

this.toolStripButton1.Image = Bitmap.FromFile("c:\\NewItem.bmp");
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText;
this.toolStripButton1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Text = "&New";
this.toolStripButton1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS