StatusStrip.SizingGrip Vlastnost

Definice

Získá nebo nastaví hodnotu určující, zda je v pravém dolním rohu ovládacího prvku zobrazen úchyt pro změnu velikosti (úchyt).

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

Hodnota vlastnosti

truepokud se zobrazí úchyt; v opačném případě . false Výchozí formát je true.

Příklady

Následující příklad kódu ukazuje StatusStrip s různými společnými vlastnostmi, včetně SizingGrip vlastnosti.

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"

Poznámky

Vlastnost můžete použít SizingGrip k zobrazení úchytu, který uživateli poskytne indikaci, kdy StatusStrip je možné měnit velikost.

I když je SizingGrip vlastnost nastavená na true a GripStyle vlastnost nastavená na Visible, úchyt pro změnu velikosti se nezobrazí, pokud také nenastavíte LayoutStyle vlastnost na jednu z hodnot přetečení. LayoutStyle Pokud je vlastnost nastavena na Flow nebo Table, úchyt pro změnu velikosti se nezobrazí.

Platí pro

Produkt Verze
.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, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10