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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET