IWxObject.Delete

Fore Syntax

Delete;

Fore.NET Syntax

Delete();

Description

The Delete method deletes an object.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;
Var
    ws: IWxWorkspace;
    Shape: IWxShape;
Begin
    Shape := ws.Shapes.Item(0);
    Shape.Delete;
End Sub UserProc;

After executing this example the object located in a workspace is deleted.

Fore.NET Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Imports System;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Andy;

Pablic Shared Sub UserProc();
Var
    ws: IWxWorkspace;
    Shape: IWxShape;
Begin
    Shape := ws.Shapes.Item[0];
    Shape.Delete();
End Sub UserProc;

After executing this example the object located in a workspace is deleted.

See also:

IWxObject