Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitSelection |
Sub ToFitSelection()
Member of ActiveView
The ToFitSelection method changes the active view to fit a selection of objects in the current document into the application window. This method adjusts the zoom level of the page so that the entire current selection of objects fills the current view in the application window.
ToFitSelection method is equivalent to the Shift+F2 command in CorelDRAW.
The following VBA example adjusts the zoom level in CorelDRAW so that all selected objects on the page appear in the active view of the current document.
Sub ToFitSelection() |
ActiveWindow.ActiveView.ToFitSelection |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.