- color
- System.Drawing.Color structure that represents the background color of the drawing surface.
The Graphics.Clear(Color) method clears the state of the graphics object and should not be called when the graphics object cannot be updated. For example, if the Graphics.Clear(Color) method is called on a secure desktop in a terminal server session, an System.Runtime.InteropServices.ExternalException may occur, leaving the System.Drawing.Graphics object in an inconsistent state.