WindowCollection 类

定义

包含 Window 当前打开的每个 InfoPath 窗口的对象。

public ref class WindowCollection abstract : System::Collections::IEnumerable
public abstract class WindowCollection : System.Collections.IEnumerable
type WindowCollection = class
    interface IEnumerable
Public MustInherit Class WindowCollection
Implements IEnumerable
继承
WindowCollection
实现

注解

Window 对象代表在 InfoPath 应用程序中使用的两种窗口类型:用户填写表单时用于显示表单的编辑窗口,以及用户设计表单模板时在设计模式下使用的设计窗口。

WindowCollection 集合实现可用于访问窗体关联的 Window 对象的属性,并且可通过 Windows 对象的 属性访问该Application集合

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

构造函数

WindowCollection()

包含 Window 当前打开的每个 InfoPath 窗口的对象。

属性

Count

获取集合中包含的对象数 WindowWindowCollection 计数。

Item[Int32]

获取对 对象中WindowCollection指定 Window 对象的引用。

方法

GetEnumerator()

获取一个 System.Collections.IEnumerator 对象,它会对集合中的所有条目进行迭代。

适用于