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 方法,以在自動格式化配置套用至相關聯的控件時執行其他處理。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應