System.Windows.Forms.Control.SetBounds C# (CSharp) Method

SetBounds() public method

public SetBounds ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void
		public void SetBounds(int x, int y, int width, int height) {
			SetBounds(x, y, width, height, BoundsSpecified.All);
		}

Same methods

Control::SetBounds ( int x, int y, int width, int height, BoundsSpecified specified ) : void

Usage Example

Example #1
0
 public static void CallControlSetBounds(Control c, object[] obj)
 {
     if (obj.Length == 4)
     {
         c.SetBounds((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3]);
     }
     if (obj.Length == 5)
     {
         c.SetBounds((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3],
                     (BoundsSpecified)obj[4]);
     }
 }
All Usage Examples Of System.Windows.Forms.Control::SetBounds
Control