Method BeginPaint
BeginPaint(Graphics)
Prepares the GdiPainter to paint. Associates new device context from given Graphics object to GdiPainter and preserves GdiPainter properties.
EndPaint()
public virtual void BeginPaint(Graphics graphics)
Parameters
graphicsGraphicsThe Graphics object to draw on.