Control.OnPrint(PaintEventArgs) 方法
定义
protected:
virtual void OnPrint(System::Windows::Forms::PaintEventArgs ^ e);
protected virtual void OnPrint (System.Windows.Forms.PaintEventArgs e);
abstract member OnPrint : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPrint : System.Windows.Forms.PaintEventArgs -> unit
Protected Overridable Sub OnPrint (e As PaintEventArgs)
参数
包含事件数据的 PaintEventArgs。A PaintEventArgs that contains the event data.
例外
e
参数为 null
。The e
parameter is null
.
注解
如果设置了的 UserPaint
位 ControlStyles ,则可以重写 OnPrint 来执行分层绘制。If the UserPaint
bit of the ControlStyles is set, you can override OnPrint to do layered painting. 有关更多信息,请参见SetStyle。See SetStyle for more information.