PersonCollection

PersonCollection

概述

PersonCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:Contributor,IEnumerable<Person>。

表示一组作为书目来源贡献者的人员。

此类提供 9 种方法,用于在 .NET 程序中处理 PersonCollection 对象。可用的方法包括:Add、Clear、Contains、GetEnumerator、PersonCollection、Remove、RemoveAt。在安装 Aspose.Words FOSS for .NET 软件包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。

属性

名称类型访问描述
Countint读取获取集合中包含的人员数量。

方法

签名描述
PersonCollection()初始化 PersonCollection 类的新实例。
PersonCollection(persons: IEnumerable<Person>)初始化 PersonCollection 类的新实例。
PersonCollection(persons)初始化 PersonCollection 类的新实例。
Add(person: Person)向集合中添加一个 Person。
Remove(person: Person)从集合中移除该 person。
RemoveAt(index: int)移除指定索引处的 person。
Clear()从集合中移除所有项目。
Contains(person: Person)确定集合是否包含特定人员。
GetEnumerator() → IEnumerator<Person>返回枚举器。

另请参阅

 中文