IWxShapes.ClearAll

Syntax

ClearAll;

Description

The ClearAll method removes all shapes from the workspace.

Example

Executing the example requires an object that is a workspace. Create a form, add the Button1 button to it, the WorkspaceBox component named WorkspaceBox1, the UiWorkspaceObject component named UiWorkspaceObject1, specify the workspace as an object of the UiWorkspaceObject1 component, the UiWorkspaceObject1 component as a data source of the WorkspaceBox1 component and the True value of the Active property of the UiWorkspaceObject1 component.

Add links to the Andy, Metabase, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    WorkspaceBox1.View.Workspace.Shapes.ClearAll;
End Sub Button1OnClick;

Clicking the button removes all shapes from the WorkspaceBox1 component area.

See also:

IWxShapes