ViewToWorkspace(Position: IGxPointF): IGxPointF;
Position. View coordinate.
The ViewToWorkspace method returns a workspace coordinate, matching the defined view coordinate.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
PointF : IGxPointF;
Begin
view := ws.Views.Item(0);
PointF := New GxPointF.Create(-66,-7);
ws.Shapes.FindById("Shape 2").PinPosition := view.ViewToWorkspace(PointF);
End Sub UserProc;
After executing the example shape position is changed.
See also: