_Application2.Windows 属性

获取一个对 WindowsCollection 集合的引用。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
ReadOnly Property Windows As WindowsCollection
    Get
用法
Dim instance As _Application2
Dim value As WindowsCollection

value = instance.Windows
WindowsCollection Windows { get; }

属性值

类型:Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection

实现

_Application.Windows

备注

在设置了对 Windows 集合的引用之后,可以使用其属性访问其所包含的每个 Window 对象。

备注

Windows 集合只能用于获取其所包含的 Window 对象的数目或返回一个对 Window 对象的引用,而不能用于添加或删除 Window 对象。

重要

可以无限制访问此成员。

示例

在以下示例中,Windows 属性用于访问 WindowsCollection 集合的 Count 属性并在消息框中显示该值:

thisXDocument.UI.Alert("Count of Windows: " + thisApplication.Windows.Count);

另请参阅

引用

_Application2 接口

_Application2 成员

Windows 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间