ElementHost.OnPaintBackground(PaintEventArgs) 方法

定義

繪製控制項的背景。

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)

參數

pevent
PaintEventArgs

PaintEventArgs,含有要繪製的控制項資訊。

屬性

備註

方法 OnPaintBackground 會將父控制項的背景繪製成螢幕外 HBITMAP。 此點陣圖會當做裝載元素中的背景使用,以支援透明度。

這個方法支援 Microsoft .NET 基礎結構,而且不適合直接從您的程式碼使用。

適用於

另請參閱