IWxShape.Tag

Syntax

Tag: Variant;

Description

The Tag property is not used by the compiler. The property can be determined and used as required.

Example

Executing the example requires that repository contains a workspace with the WSP identifier containing shape.

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

Sub UserProc;
Var
    mb: Imetabase;
    wsp: IWxWorkspace;
    Shape: IWxShape;
    Size: IGxSizeF;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    wsp.BeginUpdate;
    Shape := wsp.Shapes.Item(0);
    Shape.Angle := 40;
    Size := New GxSizeF.Create(4378);
    Shape.Size := Size;
    Shape.Tag := "Shape size and rotation angle are changed";
    wsp.EndUpdate;
    // Save changes
    (wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the shape size and shape angle are changed and the Tag property displays a comment on these operations.

See also:

IWxShape