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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.