CellCollection
概述
CellCollection 是 Aspose.Slides FOSS 中用于 Java 的类。继承自:BaseCollection<ICell>,ICellCollection。
表示一组细胞。
此类提供 16 个方法,用于在 Java 程序中处理 CellCollection 对象。可用的方法包括:CellCollection、asICollection、asIEnumerable、asIPresentationComponent、asISlideComponent、asList、get、getPresentation、getSlide、getSlidePart、initInternal、iterator,以及另外 2 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:presentation、slide、slidePart。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
slide | IBaseSlide | 读取 | 获取幻灯片。 |
slidePart | Object | 读取 | 返回与此集合关联的幻灯片部分。 |
presentation | IPresentation | 读取 | 获取呈现。 |
方法
| 签名 | 描述 |
|---|---|
CellCollection() | 创建一个空的 CellCollection。 |
CellCollection(cells: List<ICell>) | 使用给定的单元格创建一个新的 CellCollection。 |
CellCollection(cells: List<ICell>, parentSlide: IBaseSlide) | 使用给定的单元格和父幻灯片创建一个新的 CellCollection。 |
initInternal(cells: List<ICell>, slidePart: Object, parentSlide: IBaseSlide) → CellCollection | 使用给定的单元格、幻灯片部分和父幻灯片初始化此集合。 |
get(index: int) → ICell | 返回指定索引处的 ICell |
size() → int | 返回集合中单元格的数量 |
asList() → List<ICell> | 返回内部单元格列表的不可修改视图。 |
asICollection() → List<ICell> | 以通用集合的形式返回单元格. |
asIEnumerable() → Iterable<ICell> | 返回一个可迭代的单元格 |
getSlide() → IBaseSlide | 返回该幻灯片。 |
setParentSlide(parentSlide: IBaseSlide) | 为此集合设置父幻灯片。 |
getSlidePart() → Object | 返回与此集合关联的幻灯片部分。 |
getPresentation() → IPresentation | 返回演示文稿。 |
asISlideComponent() → ISlideComponent | 返回此集合为一个 ISlideComponent |
asIPresentationComponent() → IPresentationComponent | 返回此集合为一个 IPresentationComponent |
iterator() → Iterator<ICell> | 返回一个遍历集合中单元格的迭代器 |