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
當設計主機在設計時調整了相關的網頁伺服器控制項時,會呼叫。
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 ()
- 屬性
備註
Note
這種 OnControlResize 方法已經過時了。 使用該 OnComponentChanged 方法以實現等效的控制設計功能。
OnControlResize當使用者操作導致相關網頁伺服器控制項被調整時,設計時環境通常會呼叫此方法。 OnControlResize在調整大小的過程中,這個方法可能會被多次呼叫,以顯示控制項的更新大小,然後才完成調整。 控制項的寬度與高度屬性會在呼叫方法前 OnControlResize 更新。