System.Windows.Forms.Control.UpdateBounds Method

Updates the bounds of the control with the specified size, location, and client size.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected void UpdateBounds (int x, int y, int width, int height, int clientWidth, int clientHeight)

Parameters

x
The System.Drawing.Point.X coordinate of the control.
y
The System.Drawing.Point.Y coordinate of the control.
width
The System.Drawing.Size.Width of the control.
height
The System.Drawing.Size.Height of the control.
clientWidth
The client System.Drawing.Size.Width of the control.
clientHeight
The client System.Drawing.Size.Height of the control.

Remarks

If the new Control.Size of the control is different from the previous System.Drawing.Size, the Control.SizeChanged event is raised. Likewise, if the Control.Location of the control changes, the Control.LocationChanged event is raised.

Requirements

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