StatusStrip.Stretch Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob sich der StatusStrip in seinem Container von einem Ende zum anderen erstreckt, oder legt diesen fest.

public:
 property bool Stretch { bool get(); void set(bool value); };
public bool Stretch { get; set; }
member this.Stretch : bool with get, set
Public Property Stretch As Boolean

Eigenschaftswert

Boolean

true, wenn sich das StatusStrip-Objekt in seinem ToolStripContainer-Objekt von einem Ende zum anderen Ende erstreckt, andernfalls false. Der Standardwert ist true.

Beispiele

Im folgenden Codebeispiel wird eine StatusStrip mit verschiedenen allgemeinen Eigenschaften festgelegt, einschließlich der Stretch Eigenschaft.

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"

Gilt für