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。

属性

名称类型访问描述
slideIBaseSlide读取获取幻灯片。
slidePartObject读取返回与此集合关联的幻灯片部分。
presentationIPresentation读取获取呈现。

方法

签名描述
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>返回一个遍历集合中单元格的迭代器

另请参阅

 中文