ControlDesigner.OnAutoFormatApplied(DesignerAutoFormat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當已對相關控制項套用預先定義的自動格式化方案時,會呼叫此系統。
public:
virtual void OnAutoFormatApplied(System::Web::UI::Design::DesignerAutoFormat ^ appliedAutoFormat);
public virtual void OnAutoFormatApplied(System.Web.UI.Design.DesignerAutoFormat appliedAutoFormat);
abstract member OnAutoFormatApplied : System.Web.UI.Design.DesignerAutoFormat -> unit
override this.OnAutoFormatApplied : System.Web.UI.Design.DesignerAutoFormat -> unit
Public Overridable Sub OnAutoFormatApplied (appliedAutoFormat As DesignerAutoFormat)
參數
- appliedAutoFormat
- DesignerAutoFormat
一個 DesignerAutoFormat 定義風格的物件。
備註
OnAutoFormatApplied當物件對相關控制項套用預設格式後,該方法才被呼叫DesignerAutoFormat。 物件 DesignerAutoFormat 定義了套用到控制項上的自動格式化方案名稱與樣式設定。
從 ControlDesigner 類別衍生的類別會覆蓋該 OnAutoFormatApplied 方法,當對相關控制套用自動格式化方案時,會執行額外處理。