ToolStripItem.TextImageRelation プロパティ
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
ToolStripItem のテキストとイメージの互いに相対的な位置を取得または設定します。
名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
Dim instance As ToolStripItem Dim value As TextImageRelation value = instance.TextImageRelation instance.TextImageRelation = value
[LocalizableAttribute(true)] public: property TextImageRelation TextImageRelation { TextImageRelation get (); void set (TextImageRelation value); }
/** @property */ public TextImageRelation get_TextImageRelation () /** @property */ public void set_TextImageRelation (TextImageRelation value)


ToolStripItem に対し、TextImageRelation プロパティなど、共通のプロパティを設定するための構文を次のコード例に示します。
' toolStripStatusLabel1.BorderSides = CType(System.Windows.Forms.ToolStripStatusLabelBorderSides.Left Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Top Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Right Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom, System.Windows.Forms.ToolStripStatusLabelBorderSides) toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised toolStripStatusLabel1.IsLink = True toolStripStatusLabel1.Name = "toolStripStatusLabel1" toolStripStatusLabel1.Size = New System.Drawing.Size(246, 20) toolStripStatusLabel1.Spring = True toolStripStatusLabel1.Text = "toolStripStatusLabel1" toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left
// toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised; toolStripStatusLabel1.IsLink = true; toolStripStatusLabel1.Name = "toolStripStatusLabel1"; toolStripStatusLabel1.Size = new System.Drawing.Size(246, 20); toolStripStatusLabel1.Spring = true; toolStripStatusLabel1.Text = "toolStripStatusLabel1"; toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left;

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ToolStripItem.TextImageRelation プロパティのページへのリンク