Share via


DrawingControl.Window Property

Visio Automation Reference

Returns the window associated with an instance of the Microsoft Office Visio Drawing Control. Read-only.

Version Information
 Version Added:  Visio 2003

Syntax

expression.Window

expression   A variable that represents a DrawingControl object.

Return Value
Window

Remarks

For the DrawingControl object, the Window property returns the window that the control is displaying. The value is valid only when the control is in place and active.

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.

Visual Basic for Applications
  
Public Sub Window_Example() 
 
    Debug.Print  Application.Window.Caption

End Sub

See Also