Επεξεργασία

Κοινή χρήση μέσω


ElementHost.OnPaintBackground(PaintEventArgs) Method

Definition

Paints the background of the control.

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ pevent);
[System.ComponentModel.Browsable(false)]
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent);
[<System.ComponentModel.Browsable(false)>]
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (pevent As PaintEventArgs)

Parameters

pevent
PaintEventArgs

A PaintEventArgs that contains information about the control to paint.

Attributes

Remarks

The OnPaintBackground method paints the parent control's background into an offscreen HBITMAP. This bitmap is used as the background in the hosted element to support transparency.

This method supports the Microsoft .NET infrastructure and is not intended to be used directly from your code.

Applies to

See also