Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Control.OnPrint(PaintEventArgs) Method

Definición

Genera el evento Paint.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)

Parámetros

e
PaintEventArgs PaintEventArgs PaintEventArgs PaintEventArgs

Objeto PaintEventArgs que contiene los datos del evento.A PaintEventArgs that contains the event data.

Excepciones

Comentarios

Si el UserPaint de bits de la ControlStyles está establecido, se puede reemplazar OnPrint hacer dibujar en capas.If the UserPaint bit of the ControlStyles is set, you can override OnPrint to do layered painting. Vea SetStyle para obtener más información.See SetStyle for more information.

Se aplica a

Consulte también: