Control.OnPaintBackground(PaintEventArgs) Metodo

Definizione

Disegna lo sfondo del controllo.

protected:
 virtual void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ pevent);
protected virtual void OnPaintBackground(System.Windows.Forms.PaintEventArgs pevent);
abstract member OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overridable Sub OnPaintBackground (pevent As PaintEventArgs)

Parametri

pevent
PaintEventArgs

Oggetto PaintEventArgs contenente informazioni sul controllo da disegnare.

Commenti

Il metodo OnPaintBackground consente alle classi derivate di gestire Windows richieste di cancellazione in background.

Note per gli eredi

L'ereditarietà delle classi deve eseguire l'override di questo metodo per gestire la richiesta di cancellazione dello sfondo dalle finestre. Quando si esegue l'override OnPaintBackground(PaintEventArgs) in una classe derivata, non è necessario chiamare la classe di base .OnPaintBackground(PaintEventArgs)

Si applica a

Vedi anche