ColumnCollection

ColumnCollection

概述

ColumnCollection 是 Aspose.Slides FOSS 中用于 Java 的一个类。继承自:IColumnCollection,Iterable<IColumn>。

表示表中列的集合。

此类提供 15 个方法,用于在 Java 程序中处理 ColumnCollection 对象。可用的方法包括:ColumnCollection、addClone、asICollection、asIEnumerable、asList、get、initInternal、insertClone、iterator、makeEmptyTc、rebuild、removeAt,以及另外 1 个方法。所有公共成员在安装了 Aspose.Slides FOSS for Java 包后,可供任何 Java 应用程序访问。

方法

签名描述
ColumnCollection(tblElement: Element, tblGridElement: Element, saveCallback: Runnable)创建一个新的 ColumnCollection,由 XML 元素支持。
ColumnCollection(columns: List<IColumn>)使用给定的列创建一个新的 ColumnCollection(不使用 XML 支持)。
ColumnCollection()创建一个空的 ColumnCollection(不使用 XML 支持)。
initInternal(tblElement: Element, tblGridElement: Element, saveCallback: Runnable) → ColumnCollection使用给定的 XML 元素和上下文初始化此集合。
rebuild()从 XML 网格元素重建列列表。
get(index: int) → IColumn返回指定索引处的 IColumn
size() → int返回集合中的列数
addClone(templ: IColumn, withAttachedColumns: boolean) → List<IColumn>创建模板列的克隆,可选地包括附加列,并返回它们
insertClone(index: int, templ: IColumn, withAttachedColumns: boolean) → List<IColumn>在给定索引处插入克隆列,可选地附加列,并返回它们
removeAt(firstColumnIndex: int, withAttachedRows: boolean)从指定索引开始移除列,可选地同时移除附加的行
asICollection() → List<IColumn>将列作为 List 集合返回
asIEnumerable() → Iterable<IColumn>将列作为 Iterable 序列返回
asList() → List<IColumn>返回内部列列表的不可修改视图。
iterator() → Iterator<IColumn>返回集合中 IColumn 元素的迭代器。
makeEmptyTc(doc: Document) → Element创建一个带有 txBody 和 tcPr 的空 {@code <a:tc>} 元素。

另请参阅

 中文