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 ,控件的宽度和高度属性将更新。

适用于

另请参阅