![]() |
![]() |
ActiveView.ToFitSelection
Sub ToFitSelection()
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 code example adjusts the zoom level in CorelDRAW so that all selected objects on the page appear in the active view of the current document.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.