StatusStrip.GripStyle StatusStrip.GripStyle StatusStrip.GripStyle StatusStrip.GripStyle Property

Definición

Obtiene o establece la visibilidad del control utilizado para cambiar de posición el control.Gets or sets the visibility of the grip used to reposition the control.

public:
 property System::Windows::Forms::ToolStripGripStyle GripStyle { System::Windows::Forms::ToolStripGripStyle get(); void set(System::Windows::Forms::ToolStripGripStyle value); };
public System.Windows.Forms.ToolStripGripStyle GripStyle { get; set; }
member this.GripStyle : System.Windows.Forms.ToolStripGripStyle with get, set
Public Property GripStyle As ToolStripGripStyle

Valor de propiedad

Uno de los valores de ToolStripGripStyle.One of the ToolStripGripStyle values. De manera predeterminada, es Hidden.The default is Hidden.

Ejemplos

En el ejemplo de código siguiente se muestra un StatusStrip con varias propiedades comunes establecidas, incluyendo la GripStyle propiedad.The following code example demonstrates a StatusStrip with various common properties set, including the GripStyle property.

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"

Comentarios

Incluso con la SizingGrip propiedad establecida en true y GripStyle propiedad establecida en Visible, el control de tamaño no se mostrarán a menos que establezca también la LayoutStyle propiedad en uno de los valores de desbordamiento.Even with the SizingGrip property set to true and the GripStyle property set to Visible, the sizing grip will not be displayed unless you also set the LayoutStyle property to one of the overflow values. Si el LayoutStyle propiedad está establecida en Flow o Table, no se mostrará el control de tamaño.If the LayoutStyle property is set to Flow or Table, the sizing grip will not be displayed.

Se aplica a