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 حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.