Table of contents
TOC
折叠目录
展开目录

Application.Window 属性 (Visio)Application.Window Property (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回与当前的 Microsoft 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

WindowWindow

注解Remarks

如果 Visual Studio 解决方案中包含Microsoft.Office.Interop.Visio的引用,该属性将映射到以下类型:If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this property maps to the following types:

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

示例Example

下面的宏演示如何使用窗口属性可以打印的与 Visio 在立即窗口中的当前实例关联的窗口的标题。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
© 2018 Microsoft