Control.SetBounds Method (Int32, Int32, Int32, Int32, BoundsSpecified)
.NET Framework (current version)
Sets the specified bounds of the control to the specified location and size.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
member SetBounds : x:int * y:int * width:int * height:int * specified:BoundsSpecified -> unit
Parameters
- x
-
Type:
System.Int32
The new Left property value of the control.
- y
-
Type:
System.Int32
The new Top property value of the control.
- width
-
Type:
System.Int32
The new Width property value of the control.
- height
-
Type:
System.Int32
The new Height property value of the control.
- specified
-
Type:
System.Windows.Forms.BoundsSpecified
A bitwise combination of the BoundsSpecified values. For any parameter not specified, the current value will be used.
.NET Framework
Available since 1.1
Available since 1.1
Show: