StatusStrip.Stretch プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

/** @property */ public boolean get_Stretch () /** @property */ public void set_Stretch (boolean value)
StatusStrip を ToolStripContainer の端から端まで拡大する場合は true。それ以外の場合は false。既定値は true です。

StatusStrip に、Stretch プロパティを含む各種の共通プロパティを設定するためのコード例を次に示します。
statusStrip1.Dock = System.Windows.Forms.DockStyle.Top statusStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible statusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {toolStripStatusLabel1}) statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow statusStrip1.Location = New System.Drawing.Point(0, 0) statusStrip1.Name = "statusStrip1" statusStrip1.ShowItemToolTips = True statusStrip1.Size = New System.Drawing.Size(292, 22) statusStrip1.SizingGrip = False statusStrip1.Stretch = False statusStrip1.TabIndex = 0 statusStrip1.Text = "statusStrip1"
statusStrip1.Dock = System.Windows.Forms.DockStyle.Top; statusStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible; statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { toolStripStatusLabel1}); statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; statusStrip1.Location = new System.Drawing.Point(0, 0); statusStrip1.Name = "statusStrip1"; statusStrip1.ShowItemToolTips = true; statusStrip1.Size = new System.Drawing.Size(292, 22); statusStrip1.SizingGrip = false; statusStrip1.Stretch = false; statusStrip1.TabIndex = 0; statusStrip1.Text = "statusStrip1";

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


- StatusStrip.Stretch プロパティのページへのリンク