ControlDesigner.OnAutoFormatApplied(DesignerAutoFormat) 方法

定義

將預先定義的自動格式化配置套用至關聯的控制項時呼叫。

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 方法,以在自動格式化配置套用至相關聯的控制項時執行其他處理。

適用於

另請參閱