Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.ActiveWindow


Document.ActiveWindow

Property ActiveWindow As Window

Description

Member of Document

The ActiveWindow property represents the active window.

The ActiveWindow property returns a read-only value.

VBA example

The following VBA example sets the width of the active document window to half the size of the main application window and then sets its zoom factor to 200%.

Sub Test()
 Dim w As Window
 Set w = ActiveDocument.ActiveWindow
 w.WindowState = cdrWindowNormal
 w.Width = AppWindow.Width / 2
 w.ActiveView.Zoom = 200
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.