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 the repository contains a workspace with the WSP identifier that contains a 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