IPortionCollection
概述
IPortionCollection 是 Aspose.Slides FOSS 中用于 Java 的接口。继承自:Iterable<IPortion>。
表示一组文本片段。
此接口提供 12 种方法,用于在 Java 程序中处理 IPortionCollection 对象。可用的方法包括:add、asIEnumerable、clear、contains、count、get、indexOf、insert、isReadOnly、remove、removeAt、size。在安装了 Aspose.Slides FOSS for Java 包之后,所有公共成员对任何 Java 应用程序均可访问。属性:readOnly。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
readOnly | boolean | 读取 | 获取一个值,指示集合是否为只读。 |
方法
| 签名 | 描述 |
|---|---|
get(index: int) → IPortion | 获取指定索引处的部分。 |
size() → int | 返回集合中部分的数量。 |
count() → int | 获取集合实际包含的元素数量。 |
asIEnumerable() → Iterable<IPortion> | 返回此集合为可迭代对象。 |
add(value: IPortion) | 在集合末尾添加一个部分。 |
indexOf(item: IPortion) → int | 返回指定部分的索引。 |
insert(index: int, value: IPortion) | 在指定索引处插入一个部分。 |
clear() | 从集合中删除所有部分。 |
contains(item: IPortion) → boolean | 确定集合是否包含指定的部分。 |
remove(item: IPortion) → boolean | 删除指定部分的第一次出现。 |
removeAt(index: int) | 删除指定索引处的部分。 |
isReadOnly() → boolean | 获取一个值,指示集合是否为只读。 |