Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitAllObjects |
Sub ToFitAllObjects()
Member of ActiveView
The ToFitAllObjects method changes the active view to fit all 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 VBA 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 |
Copyright 2013 Corel Corporation. All rights reserved.