WorkspaceToView(Position: IGxPointF): IGxPointF;
Position. Workspace coordinate.
The WorkspaceToView method returns a view coordinate, that corresponds to the defined coordinate of the workspace.
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(10,-7);
view.Offset := view.WorkspaceToView(PointF);
End Sub UserProc;
After executing the example a view center offset relative to a workspace is changed.
See also: