Επεξεργασία

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


ElementHost.OnPaint(PaintEventArgs) Method

Definition

Raises the Paint event.

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

Parameters

e
PaintEventArgs

A PaintEventArgs that contains the event data.

Attributes

Remarks

The ElementHost implementation of the OnPaint method forwards to the base class implementation.

Notes to Inheritors

Do not override this implementation of the OnPaint(PaintEventArgs) method. The ElementHost control manages the painting of its hosted element, and overriding OnPaint(PaintEventArgs) will cause unpredictable results.

Applies to

See also