IWxShape.PinPosition

Syntax

PinPosition: IGxPointF;

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

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: Imetabase;
    wsp: IWxWorkspace;
    Shape: IWxShape;
    OutPoint: GxPointF = 
New GxPointFClass();
Begin
    
// Get workspace for editing
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    Shape := wsp.Shapes.Item[
0];
    OutPoint.Create(
1210);
    Shape.PinPosition := OutPoint;
    
// Save changes
    (wsp As IMetabaseObject).Save();
End Sub;

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

See also:

IWxShape