_Application2.Windows 属性

定义

获取对集合的 WindowsCollection 引用。

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ Windows { Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection Windows { get; }
member this.Windows : Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection
Public ReadOnly Property Windows As WindowsCollection

属性值

实现

示例

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

thisXDocument.UI.Alert("Count of Windows: " + thisApplication.<span class="label">Windows</span>.Count);

注解

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

注意Windows 集合只能用于获取它包含的 Window 对象的计数或返回对 Window 对象的引用。 它不能用于添加或删除 Window 对象。

重要说明:可以不受限制地访问此成员。

适用于