IWxShape.BringToFront

Syntax

BringToFront;

Description

The BringToFront method brings an object to front.

Example

Executing the example requires that the repository contains a workspace with the WSP identifier that contains several shapes.

Add links to the Andy, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Wsp: IWxWorkspace;
    Shape: IWxShape;
Begin
    MB := MetabaseClass.Active;
    // Get workspace
    Wsp := MB.ItemById("WSP").Edit As IWxWorkspace;
    Wsp.BeginUpdate;
    Shape := Wsp.Shapes.Item(0);
    Shape.BringToFront;
    Wsp.EndUpdate;
    // Save changes
    (Wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the selected object is brought to front.

See also:

IWxShape