Muokkaa

Jaa


Control.UpdateBounds Method

Definition

Updates the bounds of the control.

Overloads

UpdateBounds(Int32, Int32, Int32, Int32)

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

UpdateBounds()

Updates the bounds of the control with the current size and location.

UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

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

UpdateBounds(Int32, Int32, Int32, Int32)

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

protected:
 void UpdateBounds(int x, int y, int width, int height);
protected void UpdateBounds (int x, int y, int width, int height);
member this.UpdateBounds : int * int * int * int -> unit
Protected Sub UpdateBounds (x As Integer, y As Integer, width As Integer, height As Integer)

Parameters

x
Int32

The X coordinate of the control.

y
Int32

The Y coordinate of the control.

width
Int32

The Width of the control.

height
Int32

The Height of the control.

Remarks

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

See also

Applies to

UpdateBounds()

Updates the bounds of the control with the current size and location.

protected:
 void UpdateBounds();
protected public:
 void UpdateBounds();
protected void UpdateBounds ();
protected internal void UpdateBounds ();
member this.UpdateBounds : unit -> unit
Protected Sub UpdateBounds ()
Protected Friend Sub UpdateBounds ()

Remarks

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

See also

Applies to

UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

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

protected:
 void UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight);
protected void UpdateBounds (int x, int y, int width, int height, int clientWidth, int clientHeight);
member this.UpdateBounds : int * int * int * int * int * int -> unit
Protected Sub UpdateBounds (x As Integer, y As Integer, width As Integer, height As Integer, clientWidth As Integer, clientHeight As Integer)

Parameters

x
Int32

The X coordinate of the control.

y
Int32

The Y coordinate of the control.

width
Int32

The Width of the control.

height
Int32

The Height of the control.

clientWidth
Int32

The client Width of the control.

clientHeight
Int32

The client Height of the control.

Remarks

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

See also

Applies to