Compartir por


Label.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) Método

Definición

Establece los límites especificados de la etiqueta.

protected:
 override void SetBoundsCore(int x, int y, int width, int height, System::Windows::Forms::BoundsSpecified specified);
protected override void SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified);
override this.SetBoundsCore : int * int * int * int * System.Windows.Forms.BoundsSpecified -> unit
Protected Overrides Sub SetBoundsCore (x As Integer, y As Integer, width As Integer, height As Integer, specified As BoundsSpecified)

Parámetros

x
Int32

Left Nuevo valor de propiedad del control.

y
Int32

Top Nuevo valor de propiedad del control.

width
Int32

Width Nuevo valor de propiedad del control.

height
Int32

Height Nuevo valor de propiedad del control.

specified
BoundsSpecified

Combinación bit a bit de los BoundsSpecified valores. Para cualquier parámetro no especificado, se usará el valor actual.

Comentarios

Si establece la AutoSize propiedad trueen , se ajustará el tamaño de la etiqueta para ajustarse al contenido de la etiqueta. Si establece AutoSize en false después de llamar al SetBoundsCore método , la etiqueta recibirá las dimensiones especificadas en la llamada.

Se aplica a