clearGraphics

clearGraphics();

The clearGraphics method of the Window class causes the form or control to be redrawn and discards any graphics drawn on the object. If the autoRedraw property is set to true, any history for that control or form is discarded.

All drawing properties retain their current values after this call.