Edit

Share via


DataGrid.OnPaint(PaintEventArgs) Method

Definition

Raises the Paint event.

protected:
 override void OnPaint(System::Windows::Forms::PaintEventArgs ^ pe);
protected override void OnPaint (System.Windows.Forms.PaintEventArgs pe);
override this.OnPaint : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaint (pe As PaintEventArgs)

Parameters

pe
PaintEventArgs

A PaintEventArgs which contains data about the event.

Remarks

Raising an event invokes the event handler through a delegate. For an overview, see Handling and Raising Events.

Notes to Inheritors

When overriding OnPaint(PaintEventArgs) in a derived class, be sure to call the base class's OnPaint(PaintEventArgs) method.

Applies to