Control.UpdateBounds Control.UpdateBounds Control.UpdateBounds Control.UpdateBounds Method

定義

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

多載

UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) 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) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32)

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

UpdateBounds() UpdateBounds() UpdateBounds() UpdateBounds()

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

UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) 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 Int32 Int32 Int32

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

y
Int32 Int32 Int32 Int32

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

width
Int32 Int32 Int32 Int32

控制項的 WidthThe Width of the control.

height
Int32 Int32 Int32 Int32

控制項的 HeightThe Height of the control.

clientWidth
Int32 Int32 Int32 Int32

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

clientHeight
Int32 Int32 Int32 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) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) 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 Int32 Int32 Int32

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

y
Int32 Int32 Int32 Int32

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

width
Int32 Int32 Int32 Int32

控制項的 WidthThe Width of the control.

height
Int32 Int32 Int32 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() UpdateBounds() UpdateBounds() UpdateBounds()

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

protected public:
 void UpdateBounds();
protected internal void UpdateBounds ();
member this.UpdateBounds : unit -> unit
Protected Friend 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.

另請參閱

適用於