Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.SetViewPoint |
Sub SetViewPoint(x As Double, y As Double, [Zoom As Double])
Member of ActiveView
The SetViewPoint method sets the viewpoint (which is the center window position) and, optionally, a zoom level.
The following VBA example sets the viewpoint of the active view at the point (2, 2) and sets the zoom at 200%.
Sub Test() |
ActiveWindow.ActiveView.SetViewPoint 2, 2, 200 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.