IParagraphCollection

IParagraphCollection

概述

IParagraphCollection 是 Aspose.Slides FOSS 中用于 Java 的接口。继承自:Iterable<IParagraph>。

表示一组段落。

此接口为在 Java 程序中处理 IParagraphCollection 对象提供了 14 种方法。可用的方法包括:add、asIEnumerable、asIPresentationComponent、asISlideComponent、clear、contains、count、get、indexOf、insert、isReadOnly、remove,以及另外 2 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:readOnly。

属性

名称类型访问描述
readOnlyboolean读取获取一个值,指示集合是否为只读。

方法

签名描述
get(index: int) → IParagraph获取指定索引处的段落。
size() → int返回集合中段落的数量。
count() → int获取集合实际包含的元素数量。
asISlideComponent() → ISlideComponent返回基础 {@link ISlideComponent} 接口。
asIEnumerable() → Iterable<IParagraph>将此集合作为可迭代对象返回。
add(value: IParagraph)在集合末尾添加一个段落。
insert(index: int, value: IParagraph)在指定索引处插入段落。
clear()从集合中删除所有段落。
removeAt(index: int)删除指定索引处的段落。
remove(item: IParagraph) → boolean删除指定段落的第一次出现。
isReadOnly() → boolean获取一个值,指示集合是否为只读。
contains(item: IParagraph) → boolean判断集合是否包含指定的段落。
indexOf(item: IParagraph) → int返回指定段落第一次出现的零基索引。
asIPresentationComponent() → IPresentationComponent返回此实例作为 {@link IPresentationComponent}。

另请参阅

 中文