IWxShape.PinPosition

Syntax

PinPosition: IGxPointF;

Description

The PinPosition property determines coordinate of shape position. The coordinate is set for the object center.

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;
Begin
    // Get workspace for editing
    Mb := MetabaseClass.Active;
    Wsp := Mb.ItemById("WSP").Edit As IWxWorkspace;
    Shape := Wsp.Shapes.Item(0);
    Shape.PinPosition := New GxPointF.Create(1210);
    // Save changes
    (Wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the shape position on a workspace is changed.

See also:

IWxShape