IWxShape.Tag

Syntax

Tag: Variant;

Tag: object;

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;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: Imetabase;
    wsp: IWxWorkspace;
    Shape: IWxShape;
    Size: GxSizeF = 
New GxSizeFClass();
Begin
    
// Get workspace for editing
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    wsp.BeginUpdate();
    Shape := wsp.Shapes.Item[
0];
    Shape.Angle := 
40;
    Size.Create(
4378);
    Shape.Size := Size;
    Shape.Tag := 
"Shape size and rotation angle are changed";
    wsp.EndUpdate();
    
// Save changes
    (wsp As IMetabaseObject).Save();
End Sub;

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