StatusStrip.LayoutStyle Propiedad

Definición

Obtiene o establece un valor que indica cómo dispone StatusStrip la colección de elementos.

C#
public System.Windows.Forms.ToolStripLayoutStyle LayoutStyle { get; set; }

Valor de propiedad

ToolStripLayoutStyle

Uno de los valores de ToolStripLayoutStyle. De manera predeterminada, es Table.

Ejemplos

En el ejemplo de código siguiente se muestra un StatusStrip objeto con varios conjuntos de propiedades comunes, incluida la LayoutStyle propiedad .

C#
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

Utilice la LayoutStyle propiedad para obtener o establecer cómo se organizan los elementos en .StatusStrip Su valor predeterminado es ToolStripLayoutStyle.Table.

Se aplica a

Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7