ControlDesigner.OnControlResize 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 ,控件的宽度和高度属性将更新。