Previous Document Next Document

Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitSelection


ActiveView.ToFitSelection

Sub ToFitSelection()

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.