Previous Document Next Document
ActiveView.ToFitAllObjects

Sub ToFitAllObjects()

Member of ActiveView

The ToFitAllObjects method changes the active view to fit all of the objects on the current page into the application window. This method adjusts the zoom level so that the area surrounding all objects on the current page fills up the active view.

The following code example uses the ToFitAllObjects method to adjust the zoom level so that all objects on the page fill up the active view of CorelDRAW.

Sub ToFitAllObjects() 
 ActiveWindow.ActiveView.ToFitAllObjects 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.