API Documentation > CorelDRAW > 2025-v26 > ActiveView > IVGActiveView
ActiveView.SetViewPoint method
Sets the view point
Syntax:
Sub SetViewPoint(ByVal x As Double, ByVal y As Double, Optional ByVal Zoom As Double = 0)
Parameters:
Name Type Description
x
Double
y
Double
Zoom
Double
Specifies a preset, or sets a user-defined magnification level, measure as a percentage.
Remarks:
The SetViewPoint method sets the viewpoint (which is the center window position) and, optionally, a zoom level.
Examples:
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