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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.