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)

Source:
Control.cs
Source:
Control.cs
Source:
Control.cs

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

protected void UpdateBounds (int x, int y, int width, int height);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

UpdateBounds()

Source:
Control.cs
Source:
Control.cs
Source:
Control.cs

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

protected void UpdateBounds ();
protected internal void 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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

Source:
Control.cs
Source:
Control.cs
Source:
Control.cs

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);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9