Previous Document Next Document
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.

Parameters
Description
x
Identifies the x-coordinate of the viewpoint, measured in document units
y
Identifies the y-coordinate of the viewpoint, measured in document units
Zoom
Returns a preset, or sets a user-defined magnification level. This value is a percentage. This parameter is optional, and its default value is 0.

The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.