StatusStrip.LayoutStyle StatusStrip.LayoutStyle StatusStrip.LayoutStyle StatusStrip.LayoutStyle Property

Definición

Obtiene o establece un valor que indica cómo dispone StatusStrip la colección de elementos.Gets or sets a value indicating how the StatusStrip lays out the items collection.

public:
 property System::Windows::Forms::ToolStripLayoutStyle LayoutStyle { System::Windows::Forms::ToolStripLayoutStyle get(); void set(System::Windows::Forms::ToolStripLayoutStyle value); };
public System.Windows.Forms.ToolStripLayoutStyle LayoutStyle { get; set; }
member this.LayoutStyle : System.Windows.Forms.ToolStripLayoutStyle with get, set
Public Property LayoutStyle As ToolStripLayoutStyle

Valor de propiedad

Uno de los valores de ToolStripLayoutStyle.One of the ToolStripLayoutStyle values. De manera predeterminada, es Table.The default is Table.

Ejemplos

En el ejemplo de código siguiente se muestra un StatusStrip con varias propiedades comunes establecidas, incluyendo la LayoutStyle propiedad.The following code example demonstrates a StatusStrip with various common properties set, including the LayoutStyle property.

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"

Comentarios

Use la LayoutStyle propiedad va a obtener o establecer cómo se organizan los elementos en el StatusStrip.Use the LayoutStyle property to get or set how items are arranged on the StatusStrip. Su valor predeterminado es ToolStripLayoutStyle.Table.Its default value is ToolStripLayoutStyle.Table.

Se aplica a