IWxView.ViewToWorkspace

Syntax

ViewToWorkspace(Position: IGxPointF): IGxPointF;

Parameters

Position. View coordinate.

Description

The ViewToWorkspace method returns a workspace coordinate, matching the defined view coordinate.

Example

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:

IWxView