DataGrid::OnPaint Method (PaintEventArgs^)

 

Raises the Paint event.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
virtual void OnPaint(
	PaintEventArgs^ pe
) override

Parameters

pe
Type: System.Windows.Forms::PaintEventArgs^

A PaintEventArgs which contains data about the event.

Raising an event invokes the event handler through a delegate. For an overview, see NIB: Raising an Event.

Notes to Inheritors:

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

.NET Framework
Available since 1.1
Return to top
Show: