Auf Englisch lesen

Freigeben über


StatusStrip.LayoutStyle Eigenschaft

Definition

Ruft einen Wert ab, der angibt, wie die Elementauflistung des StatusStrip-Objekts angeordnet wird, oder legt diesen Wert fest.

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

Eigenschaftswert

ToolStripLayoutStyle

Einer der ToolStripLayoutStyle-Werte. Der Standardwert ist Table.

Beispiele

Im folgenden Codebeispiel wird ein StatusStrip satz allgemeiner Eigenschaften veranschaulicht, einschließlich der LayoutStyle 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";

Hinweise

Verwenden Sie die LayoutStyle Eigenschaft, um festzulegen, wie Elemente auf dem StatusStrip. Der Standardwert lautet ToolStripLayoutStyle.Table.

Gilt für