AutoScaleAndScroll;
AutoScaleAndScroll();
The AutoScaleAndScroll method centers and zooms a workspace image based on the view size.
Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.
Add links to the Andy, Drawing, Workspace system assemblies.
After executing the example a workspace image is fitted to the image size.
See also: