Control.UpdateBounds 方法

定義

更新控制項的範圍。

多載

UpdateBounds()

以目前大小和位置更新控制項的範圍。

UpdateBounds(Int32, Int32, Int32, Int32)

以指定的大小和位置更新控制項的範圍。

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

以指定的大小、位置和工作區大小更新控制項的範圍。

UpdateBounds()

以目前大小和位置更新控制項的範圍。

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

備註

Size如果新的 控制項與上 Size 一個 不同,則會 SizeChanged 引發 事件。 同樣地,如果 Location 控制項的 變更,就會 LocationChanged 引發 事件。

另請參閱

適用於

UpdateBounds(Int32, Int32, Int32, Int32)

以指定的大小和位置更新控制項的範圍。

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 座標。

y
Int32

控制項的 Y 座標。

width
Int32

控制項的 Width

height
Int32

控制項的 Height

備註

如果與上 Size 一個 控制項不同,則為 新的 Size 控制項,則會 SizeChanged 引發 事件。 同樣地,是 Location 控制項的 變更,就會 LocationChanged 引發 事件。

另請參閱

適用於

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

以指定的大小、位置和工作區大小更新控制項的範圍。

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 座標。

y
Int32

控制項的 Y 座標。

width
Int32

控制項的 Width

height
Int32

控制項的 Height

clientWidth
Int32

控制項的用戶端 Width

clientHeight
Int32

控制項的用戶端 Height

備註

Size如果新的 控制項與上 Size 一個 不同,則會 SizeChanged 引發 事件。 同樣地,如果 Location 控制項的 變更,就會 LocationChanged 引發 事件。

另請參閱

適用於