WindowCollection.Count 属性

定义

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

public:
 abstract property int Count { int get(); };
public abstract int Count { get; }
member this.Count : int
Public MustOverride ReadOnly Property Count As Integer

属性值

集合中包含的WindowCollection对象数Window

示例

以下示例将一个变量设置为 WindowCollection 集合中窗口的数目。

int windowCount = this.Application.Windows.Count; Dim windowCount As Integer = Me.Application.Windows.Count

注解

可以无限制访问此成员。

可以通过 Microsoft InfoPath Filler 中打开的表单中运行的代码访问此类型或成员。

适用于