![]() |
![]() |
ActiveView.ToFitArea
Sub ToFitArea(Left As Double, Top As Double, Right As Double, Bottom As Double)
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 code 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.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.