语言

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包含事件数据的对象。

注解

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

适用于

另请参阅