Rediger

Del via


Control.OnPrint(PaintEventArgs) Method

Definition

Raises the Paint event.

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)

Parameters

e
PaintEventArgs

A PaintEventArgs that contains the event data.

Exceptions

The e parameter is null.

Remarks

If the UserPaint bit of the ControlStyles is set, you can override OnPrint to do layered painting. See SetStyle for more information.

Applies to

See also