System.Windows.Forms.Control.SetBoundsCore Method

Performs the work of setting the specified bounds of this control.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual 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.

Remarks

Typically, the parameters that correspond to the bounds not included in the specified parameter are passed in with their current values. For example, the Control.Height, Control.Width, or the System.Drawing.Point.X or System.Drawing.Point.Y properties of the Control.Location property can be passed in with a reference to the current instance of the control. However all values passed in are honored and applied to the control.

The boundsSpecified parameter represents the elements of the controls Control.Bounds changed by your application. For example, if you change the Control.Size of the control, the boundsSpecified parameter value is the Size value of System.Windows.Forms.BoundsSpecified. However, if the Control.Size is adjusted in response to the Control.Dock property being set, the boundsSpecified parameter value is the None value of System.Windows.Forms.BoundsSpecified.

Note:

On Windows Server 2003 systems, the size of a System.Windows.Forms.Form is restricted by the maximum pixel width and height of the monitor.

Requirements

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