Skip to main content
All docs
V24.2

DXGraphics.Clear(Color) Method

Clears the entire drawing surface and fills it with the specified background color.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.2.dll

NuGet Package: DevExpress.Drawing

#Declaration

public void Clear(
    Color color
)

#Parameters

Name Type Description
color Color

The background color of the drawing surface.

#Remarks

The Clear method clears the state of the graphics object and should not be called when the graphics object cannot be updated.

See Also