ActiveWindow property

Microsoft Visio Developer Reference

ActiveWindow property

        object;DAR_Objects_(A-M)_1015.htm">

Returns the active Window object.

Version added

2.0

Syntax

objRet = object.ActiveWindow

objRet

A Window object that represents the active window.

object

Required. An expression that returns the Application object that owns the window.

Remarks

The active window can be one of the following window types: Drawing, Stencil, ShapeSheet, Edit Icon, or a Drawing or Stencil window created by an add-on. The application's active window can only be an MDI frame window—it cannot be one of the floating, docked, or anchored windows. For a complete list of window types, see the Type property.

If a window in an instance of Visio is not active, the ActiveWindow property returns Nothing.