ElementHost.OnPaint(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.
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
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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.