Control.UpdateBounds 方法

定義

更新控制項的範圍。Updates the bounds of the control.

多載

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.

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.

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)

參數

x
Int32

控制項的 X 座標。The X coordinate of the control.

y
Int32

控制項的 Y 座標。The Y coordinate of the control.

width
Int32

控制項的 WidthThe Width of the control.

height
Int32

控制項的 HeightThe Height of the control.

clientWidth
Int32

控制項的用戶端 WidthThe client Width of the control.

clientHeight
Int32

控制項的用戶端 HeightThe client Height of the control.

備註

如果控制項的新 Size 與上一個 Size 不同,則會引發 SizeChanged 事件。If the new Size of the control is different from the previous Size, the SizeChanged event is raised. 同樣地,如果控制項的 Location 變更,就會引發 LocationChanged 事件。Likewise, if the Location of the control changes, the LocationChanged event is raised.

另請參閱

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)

參數

x
Int32

控制項的 X 座標。The X coordinate of the control.

y
Int32

控制項的 Y 座標。The Y coordinate of the control.

width
Int32

控制項的 WidthThe Width of the control.

height
Int32

控制項的 HeightThe Height of the control.

備註

如果控制項的新 Size 與先前的 Size 不同,則會引發 SizeChanged 事件。If the new Size of the control if different from the previous Size, the SizeChanged event is raised. 同樣地,是控制項變更的 Location,會引發 LocationChanged 事件。Likewise, is the Location of the control changes, the LocationChanged event is raised.

另請參閱

UpdateBounds()

以目前大小和位置更新控制項的範圍。Updates the bounds of the control with the current size and location.

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

備註

如果控制項的新 Size 與上一個 Size 不同,則會引發 SizeChanged 事件。If the new Size of the control is different from the previous Size, the SizeChanged event is raised. 同樣地,如果控制項的 Location 變更,就會引發 LocationChanged 事件。Likewise, if the Location of the control changes, the LocationChanged event is raised.

另請參閱

適用於