Freigeben über


ToolStripStatusLabel.Spring Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der ToolStripStatusLabel verfügbare Platz auf dem StatusStrip Formular automatisch ausgefüllt wird, während die Größe des Formulars geändert wird.

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

Eigenschaftswert

true wenn der ToolStripStatusLabel verfügbare Platz auf dem StatusStrip Formular automatisch ausgefüllt wird, während die Größe des Formulars geändert wird; andernfalls false. Der Standardwert lautet false.

Beispiele

Das folgende Codebeispiel veranschaulicht die Syntax für verschiedene ToolStripStatusLabel allgemeine Eigenschaften, einschließlich der Spring Eigenschaft.

// 
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;
' 
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

Hinweise

Legen Sie die Spring Eigenschaft fest, damit true die ToolStripStatusLabel Größe des Containers reibungslos geändert werden kann.

Gilt für:

Weitere Informationen