CalendarDesigner.OnAutoFormat(Object, EventArgs) 方法

定义

在已将自动套用格式方案应用于控件时调用。

protected:
 void OnAutoFormat(System::Object ^ sender, EventArgs ^ e);
protected void OnAutoFormat (object sender, EventArgs e);
member this.OnAutoFormat : obj * EventArgs -> unit
Protected Sub OnAutoFormat (sender As Object, e As EventArgs)

参数

sender
Object

事件源。

e
EventArgs

包含事件数据的 EventArgs 对象。

注解

方案由用户应用,以从预定义样式集合中设置控件的外观。 重写此方法以执行将方案应用到控件后可能需要的其他操作。

适用于

另请参阅