Tag: Variant;
The Tag property is not used by the compiler. The property can be determined and used as required.
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(43, 78);
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: