StatusStrip.SizingGrip Proprietà

Definizione

Ottiene o imposta un valore che indica se un punto di controllo (riquadro) di ridimensionamento è visualizzato nell'angolo inferiore destro del controllo.

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

Valore della proprietà

Boolean

true se viene visualizzato un riquadro; in caso contrario, false. Il valore predefinito è true.

Esempio

Nell'esempio di codice seguente viene illustrato un oggetto StatusStrip con varie proprietà comuni impostate, inclusa la SizingGrip proprietà .

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"

Commenti

È possibile usare la SizingGrip proprietà per visualizzare un grip per fornire un'indicazione all'utente di quando un StatusStrip oggetto è ridimensionabile.

Anche con la SizingGrip proprietà impostata su true e la GripStyle proprietà impostata su Visible, il controllo di ridimensionamento non verrà visualizzato a meno che non si imposta anche la LayoutStyle proprietà su uno dei valori di overflow. Se la LayoutStyle proprietà è impostata su Flow o Table, il controllo di ridimensionamento non verrà visualizzato.

Si applica a