共用方式為


BaseDataListDesigner.OnAutoFormat(Object, EventArgs) 方法

定義

警告

Use of this method is not recommended because the AutoFormat dialog is launched by the designer host. The list of available AutoFormats is exposed on the ControlDesigner in the AutoFormats property. http://go.microsoft.com/fwlink/?linkid=14202

處理 AutoFormat 事件。

protected:
 void OnAutoFormat(System::Object ^ sender, EventArgs ^ e);
protected void OnAutoFormat (object sender, EventArgs e);
[System.Obsolete("Use of this method is not recommended because the AutoFormat dialog is launched by the designer host. The list of available AutoFormats is exposed on the ControlDesigner in the AutoFormats property. http://go.microsoft.com/fwlink/?linkid=14202")]
protected void OnAutoFormat (object sender, EventArgs e);
member this.OnAutoFormat : obj * EventArgs -> unit
[<System.Obsolete("Use of this method is not recommended because the AutoFormat dialog is launched by the designer host. The list of available AutoFormats is exposed on the ControlDesigner in the AutoFormats property. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.OnAutoFormat : obj * EventArgs -> unit
Protected Sub OnAutoFormat (sender As Object, e As EventArgs)

參數

sender
Object

引發事件的 Object

e
EventArgs

包含事件資料的 EventArgs 物件。

屬性

備註

OnAutoFormat方法已過時,而且沒有任何功能。

適用於

另請參閱