Sets the specified bounds of the control to the specified location and size.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Sub SetBounds( _
ByVal x As System.Integer, _
ByVal y As System.Integer, _
ByVal width As System.Integer, _
ByVal height As System.Integer, _
ByVal specified As System.Windows.Forms.BoundsSpecified _
) |
| C# | |
|---|
public void SetBounds(
System.int x,
System.int y,
System.int width,
System.int height,
System.Windows.Forms.BoundsSpecified specified
) |
Parameters
- x
- The new System.Windows.Forms.Control.Left property value of the control.
- y
- The new System.Windows.Forms.Control.Top property value of the control.
- width
- The new System.Windows.Forms.Control.Width property value of the control.
- height
- The new System.Windows.Forms.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.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also