Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitArea |
Sub ToFitArea(Left As Double, Top As Double, Right As Double, Bottom As Double)
Member of ActiveView
The ToFitArea method changes the active view to fit a specified rectangular area, identified by its coordinates, in the current document into the application window. The ToFitArea method defines an area, and adjusts the zoom level of the page so that the defined region fills the current view in the application window.
The following VBA example creates a rectangular area in the active document. This defined area, using the coordinates 0, 0, 5, and 5, uses the ToFitArea method to adjust the zoom level to display the newly defined rectangular page area as the active view.
Sub ToFitArea() |
ActiveWindow.ActiveView.ToFitArea 0, 0, 5, 5 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.