BaseDataListDesigner.OnAutoFormatApplied(DesignerAutoFormat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當對相關控制項套用自動格式化方案時,會呼叫此訊息。
public:
override void OnAutoFormatApplied(System::Web::UI::Design::DesignerAutoFormat ^ appliedAutoFormat);
public override void OnAutoFormatApplied(System.Web.UI.Design.DesignerAutoFormat appliedAutoFormat);
override this.OnAutoFormatApplied : System.Web.UI.Design.DesignerAutoFormat -> unit
Public Overrides Sub OnAutoFormatApplied (appliedAutoFormat As DesignerAutoFormat)
參數
- appliedAutoFormat
- DesignerAutoFormat
一個 DesignerAutoFormat 定義風格的物件。
備註
OnAutoFormatApplied當DesignerAutoFormat物件套用到從該BaseDataList類別衍生出的相關控制項時,該方法就會被呼叫。 DesignerAutoFormat物件定義了一個DesignerAutoFormatStyle套用到控制項上的物件。
設計者可以覆寫 來 OnAutoFormatApplied 檢查控制項的屬性或採取其他操作。