WindowCollection 类

定义

表示 Window 对象集合。Represents a collection of Window objects. 此类不能被继承。This class cannot be inherited.

public ref class WindowCollection sealed : System::Collections::ICollection
public sealed class WindowCollection : System.Collections.ICollection
type WindowCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class WindowCollection
Implements ICollection
继承
WindowCollection
实现

构造函数

WindowCollection()

初始化 WindowCollection 类的新实例。Initializes a new instance of the WindowCollection class.

属性

Count

获取 Window 中包含的 WindowCollection 对象的数目。Gets the number of Window objects contained in the WindowCollection.

IsSynchronized

获取一个值,该值指示 WindowCollection 对象是否为线程安全的。Gets a value indicating whether the WindowCollection object is thread safe.

Item[Int32]

获取位于指定索引处的 WindowNavigationWindow 对象。Gets the Window or NavigationWindow object at the specified index.

SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

方法

CopyTo(Window[], Int32)

从指定的索引开始,将集合中的每个 Window 对象复制到数组。Copies each Window object in the collection to an array, starting from the specified index.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回可用于枚举集合中 IEnumerator 对象的 WindowReturns an IEnumerator that you can use to enumerate the Window objects in the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

有关此成员的说明,请参见 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于