System.Windows.Forms.Label.SetBoundsCore Method

Sets the specified bounds of the label.

Syntax

protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)

Parameters

x
The new Control.Left property value of the control.
y
The new Control.Top property value of the control.
width
The new Control.Width property value of the control.
height
The new Control.Height property value of the control.
specified
A bitwise combination of the System.Windows.Forms.BoundsSpecified values. For any parameter not specified, the current value will be used.

Remarks

If you set the Label.AutoSize property to true, the label will be sized to fit the contents of the label. If you set Label.AutoSize to false after calling the Label.SetBoundsCore(int, int, int, int, BoundsSpecified) method, the label will receive the dimensions you specified in the call.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0