ToolStripItem.ImageAlign プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文Dim instance As ToolStripItem Dim value As ContentAlignment value = instance.ImageAlign instance.ImageAlign = value
[LocalizableAttribute(true)] public: property ContentAlignment ImageAlign { ContentAlignment get (); void set (ContentAlignment value); }
/** @property */ public ContentAlignment get_ImageAlign () /** @property */ public void set_ImageAlign (ContentAlignment value)
public function get ImageAlign () : ContentAlignment public function set ImageAlign (value : ContentAlignment)
System.Drawing.ContentAlignment 値の 1 つ。既定値は MiddleLeft です。
例外
解説ImageAlign プロパティを使用して、ToolStripItem 上のイメージの配置を取得または設定します。TextAlign プロパティを使用して、ToolStripItem 上のテキストの配置を取得または設定します。
使用例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);
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からToolStripItem.ImageAlign プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からToolStripItem.ImageAlign プロパティ
を検索
- ToolStripItem.ImageAlign プロパティのページへのリンク