Control.OnPrint(PaintEventArgs) Méthode
Définition
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)
Paramètres
PaintEventArgs qui contient les données d'événement.A PaintEventArgs that contains the event data.
Exceptions
Le paramètre e
a la valeur null
.The e
parameter is null
.
Remarques
Si le bit UserPaint
de la ControlStyles est défini, vous pouvez remplacer OnPrint pour effectuer une peinture en couches.If the UserPaint
bit of the ControlStyles is set, you can override OnPrint to do layered painting. Pour plus d'informations, voir SetStyle.See SetStyle for more information.