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 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;
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