ToolStripStatusLabel.Spring ToolStripStatusLabel.Spring ToolStripStatusLabel.Spring ToolStripStatusLabel.Spring Property

Definición

Obtiene o establece un valor que indica si el control ToolStripStatusLabel rellena automáticamente el espacio disponible en StatusStrip cuando se cambia el tamaño del formulario.Gets or sets a value indicating whether the ToolStripStatusLabel automatically fills the available space on the StatusStrip as the form is resized.

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

Valor de propiedad

true si el control ToolStripStatusLabel rellena automáticamente el espacio disponible en StatusStrip cuando se cambia el tamaño del formulario; de lo contrario, false.true if the ToolStripStatusLabel automatically fills the available space on the StatusStrip as the form is resized; otherwise, false. De manera predeterminada, es false.The default is false.

Ejemplos

En el ejemplo de código siguiente se muestra la sintaxis para distintos ToolStripStatusLabel propiedades comunes, incluyendo la Spring propiedad.The following code example demonstrates the syntax for various ToolStripStatusLabel common properties, including the Spring property.

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

Comentarios

Establecer el Spring propiedad true para habilitar la ToolStripStatusLabel cambie de tamaño fácilmente junto con su contenedor.Set the Spring property to true to enable the ToolStripStatusLabel to smoothly resize along with its container.

Se aplica a

Consulte también: