ControlDesigner.OnControlResize 方法

定義

警告

The recommended alternative is OnComponentChanged(). OnComponentChanged is called when any property of the control is changed. http://go.microsoft.com/fwlink/?linkid=14202

於設計階段在設計主應用程式中重新調整關聯之 Web 伺服器控制項的大小時呼叫。

protected:
 virtual void OnControlResize();
protected virtual void OnControlResize ();
[System.Obsolete("The recommended alternative is OnComponentChanged(). OnComponentChanged is called when any property of the control is changed. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void OnControlResize ();
abstract member OnControlResize : unit -> unit
override this.OnControlResize : unit -> unit
[<System.Obsolete("The recommended alternative is OnComponentChanged(). OnComponentChanged is called when any property of the control is changed. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member OnControlResize : unit -> unit
override this.OnControlResize : unit -> unit
Protected Overridable Sub OnControlResize ()
屬性

備註

注意

方法 OnControlResize 已過時。 OnComponentChanged將 方法用於對等的控制項設計工具功能。

OnControlResize只有在使用者動作導致相關聯的 Web 服務器控制項調整大小時,設計階段環境才會呼叫 方法。 OnControlResize在調整大小程式期間,可能會呼叫 方法數次,以在調整大小完成之前顯示控制項的更新大小。 呼叫 方法之前 OnControlResize ,會更新控制項的寬度和高度屬性。

適用於

另請參閱