AutoScaleAndScroll;
The AutoScaleAndScroll method centers and zooms a workspace image based on the view size.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
Begin
view := ws.Views.Item(0);
view.AutoScaleAndScroll;
End Sub UserProc;
After executing the example a workspace image is fitted to the image size.
See also: