ClearAll;
ClearAll();
The ClearAll method removes all shapes from the workspace.
Executing the example requires the object of the workspace type. Create a form, add the Button1 button to it, the WorkspaceBox component named WorkspaceBox1, the UiWorkspaceObject component named UiWorkspaceObject1, define the workspace as an object of the UiWorkspaceObject1 component, the UiWorkspaceObject1 component as the source of the WorkspaceBox1 component, and set the True value for the Active property of the UiWorkspaceObject1 component.
Add links to the Andy, Metabase, Workspace system assemblies.
On clicking the Button1 button all the shapes are removed from the WorkspaceBox1 component area.
See also: