API Documentation > CorelDRAW > 2025-v26 > Window > IVGWindow
Window.ActiveView property
Gets the active view
Syntax:
Property Get ActiveView() As ActiveView
Remarks:
The ActiveView property returns reference to the active view.
Examples:
The following VBA example zooms the view to display all shapes in the document.
Sub Test()
Dim actvw As ActiveView
Set actvw = ActiveWindow.ActiveView
actvw.ToFitAllObjects
Set actvw = Nothing 
End Sub