Windows.Count 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合中包含的对象数 WindowObject 的 WindowsCollection 计数。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
属性值
示例
在以下示例中,Count 属性用在 for 循环中,以在 Window 对象的集合中进行迭代,并显示一个消息框以指示窗口类型值:
for (int i=0; i < thisApplication.Windows.<span class="label">Count</span>; i++)
{
thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}
注解
重要说明:可以不受限制地访问此成员。