StatusStrip.SizingGrip Propriedade

Definição

Recebe ou define um valor que indica se uma pega de tamanho (pega) é exibida no canto inferior direito do controlo.

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

Valor de Propriedade

true se uma empunhadura for exibida; caso contrário, false. A predefinição é true.

Exemplos

O seguinte exemplo de código demonstra um StatusStrip com vários conjuntos de propriedades comuns, incluindo a propriedade SizingGrip .

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"

Observações

Pode usar a SizingGrip propriedade para mostrar uma empunhadura e dar uma indicação ao utilizador de quando é StatusStrip redimensionável.

Mesmo com a SizingGrip propriedade definida para true e a GripStyle propriedade definida para Visible, a empunhadura de dimensionamento não será exibida a menos que também defina a LayoutStyle propriedade para um dos valores de overflow. Se a LayoutStyle propriedade estiver definida para Flow ou Table, a empunhadura de dimensionamento não será exibida.

Aplica-se a