Previous Document Next Document

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


ActiveView.SetViewPoint

Sub SetViewPoint(x As Double, y As Double, [Zoom As Double])

Description

Member of ActiveView

The SetViewPoint method sets the viewpoint (which is the center window position) and, optionally, a zoom level.

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

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.