IWxShape.Workspace

Syntax

Workspace: IWxWorkspace;

Description

The Workspace property returns a shape owner, that is, a workspace.

Example

Executing the example requires an existing Shapes object of the IWxShapes type.

Sub UserProc;

Var

Shapes: IWxShapes;

Shape: IWxShape;

Begin

Shape := Shapes.Item(0);

Shape.SendToBack;

Debug.WriteLine("This object belongs to the workspace: "+Shape.Workspace.Name);

End Sub UserProc;

After executing the example the console window displays the name of the workspace, to which this shape belongs.

See also:

IWxShape