Application.Window Property (Visio)

Returns the window associated with the current instance of Microsoft Visio. Read-only.

Syntax

expression. Window

expression A variable that represents an Application object.

Return Value

Window

Remarks

If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this property maps to the following types:

  • Microsoft.Office.Interop.Visio.IVApplication.Window

Example

The following macro shows how to use the Window property to print the caption of the window associated with the current instance of Visio in the Immediate window.

 
Public Sub Window_Example()  
  
    Debug.Print  Application.Window.Caption 
 
End Sub