Difference between revisions of "Graphics.ClearRect"
From Xojo Documentation
m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|") |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{DeprecatedItem|version=2019r2|replacement=[[Graphics.ClearRectangle]]}} |
{{MethodBox | {{MethodBox | ||
| name=ClearRect | | name=ClearRect |
Latest revision as of 19:05, 3 September 2020
![]() |
This item was deprecated in version 2019r2. Please use Graphics.ClearRectangle as a replacement. |
Method
Graphics.ClearRect(X As Double, Y As Double, Width As Double, Height As Double)
Supported for all project types and targets.
Supported for all project types and targets.
Clears the rectangle described by the parameters passed by filling it with the background color of the parent window (on Windows/Linux) or by clearing the context so that the background comes through (on Mac).
Sample Code
This code clears the entire drawing area:
g.ClearRect(0, 0, g.Width, g.Height)