CommentAuthorCollection
概述
CommentAuthorCollection 是 Aspose.Slides FOSS 中用于 Java 的一个类。继承自:BaseCollection<ICommentAuthor>,ICommentAuthorCollection。
表示演示文稿中评论作者的集合。
此类提供 13 个方法,用于在 Java 程序中处理 CommentAuthorCollection 对象。可用的方法包括:addAuthor、asICollection、asIEnumerable、buildAuthor、clear、findByName、findByNameAndInitials、get、initInternal、remove、removeAt、size,以及另 1 个方法。所有公共成员在安装 Aspose.Slides FOSS for Java 包后,可供任何 Java 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
initInternal(authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation) | 初始化内部后备引用,将此集合与底层 OPC 包数据关联。 |
buildAuthor(data: AuthorData) → CommentAuthor | 从给定的基于 XML 的 {@link AuthorData} 构建一个 {@link CommentAuthor}。 |
addAuthor(name: String, initials: String) → ICommentAuthor | 添加一个具有指定名称和首字母的新作者并返回它 |
toArray() → ICommentAuthor[] | 以 ICommentAuthor 数组的形式返回所有作者 |
findByName(name: String) → List<ICommentAuthor> | 返回一个作者列表,其中作者的姓名与给定字符串匹配 |
findByNameAndInitials(name: String, initials: String) → List<ICommentAuthor> | 返回同时匹配姓名和首字母的作者 |
removeAt(index: int) | 移除指定索引处的作者 |
remove(author: ICommentAuthor) | 从集合中删除指定的作者 |
clear() | 从集合中移除所有作者 |
get(index: int) → ICommentAuthor | {@inheritDoc} 在 XML 支持模式下,委托给 {@link CommentAuthorsPart#getAuthors()},并在给定索引处填充作者。 . |
size() → int | {@inheritDoc} 在 XML 支持模式下,返回来自 {@link CommentAuthorsPart#getAuthors()} 的计数。 / |
asICollection() → List<ICommentAuthor> | 提供作者作为 List |
asIEnumerable() → Iterable<ICommentAuthor> | 返回一个可遍历作者的 Iterable |