ElementHost.OnPaintBackground(PaintEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.