Row

概述

Row 是 Aspose.Slides FOSS 中用于 Java 的类。继承自:CellCollection,IRow。

表示表中的一行。

此类提供 24 个方法,用于在 Java 程序中处理 Row 对象。可用的方法包括:CellCollection、Row、asICollection、asIEnumerable、asIPresentationComponent、asISlideComponent、asList、get、getAsIBulkTextFormattable、getAsICellCollection、getHeight、getMinimalHeight,以及另外 10 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性包括:asIBulkTextFormattable、asICellCollection、height、minimalHeight、presentation、rowFormat,以及另外 2 个。

属性

名称类型访问描述
heightdouble读取{@inheritDoc}

当 XML 支持时,从 {@code <a:tr>} 元素读取 {@code h} 属性并将 EMU 转换为点。

minimalHeightdouble读取{@inheritDoc}

当 XML 支持时,从 {@code <a:tr>} 元素读取 {@code h} 属性并将 EMU 转换为点。

rowFormatIRowFormat读取{@inheritDoc}
asICellCollectionICellCollection读取{@inheritDoc}
asIBulkTextFormattableIBulkTextFormattable读取{@inheritDoc}
slideIBaseSlide读取获取幻灯片。
slidePartObject读取返回与此集合关联的幻灯片部分。
presentationIPresentation读取获取表示。

方法

签名描述
Row()创建一个没有 XML 支撑的空 Row。
Row(cells: List<ICell>, height: double)创建一个具有给定单元格和高度的 Row,且没有 XML 支持。
Row(trElement: Element, cells: List<ICell>, saveCallback: Runnable)从给定的 {@code <a:tr>} 元素创建一个 XML-backed Row。
initInternal(trElement: Element, rowIndex: int, slidePart: Object, parentSlide: IBaseSlide, table: ITable) → Row从 {@code <a:tr>} XML 元素初始化此行,解析子 {@code <a:tc>} 元素为 {@link Cell} 实例。
getHeight() → double{@inheritDoc}

当 XML-backed 时,读取 {@code <a:tr>} 元素的 {@code h} 属性,并将其从 EMU 转换为点。

getMinimalHeight() → double{@inheritDoc}

当 XML 支持时,读取 {@code <a:tr>} 元素中的 {@code h} 属性,并将其从 EMU 转换为点。

setMinimalHeight(value: double){@inheritDoc}

当 XML 支持时,将值写回 {@code h} 属性(从点转换为 EMU),并触发保存回调。

/
getRowFormat() → IRowFormat{@inheritDoc}
getAsICellCollection() → ICellCollection{@inheritDoc}
getAsIBulkTextFormattable() → IBulkTextFormattable{@inheritDoc}
setTextFormat(source: Object){@inheritDoc} @throws IllegalArgumentException 如果 {@code source} 为 {@code null} /
CellCollection()创建一个空的 CellCollection。
get(index: int) → ICell
size() → int
asList() → List<ICell>返回内部 cell 列表的不可修改视图。
asICollection() → List<ICell>
asIEnumerable() → Iterable<ICell>
getSlide() → IBaseSlide返回该幻灯片。
setParentSlide(parentSlide: IBaseSlide)设置此集合的父幻灯片。
getSlidePart() → Object返回与此集合关联的幻灯片部分。
getPresentation() → IPresentation返回演示。
asISlideComponent() → ISlideComponent
asIPresentationComponent() → IPresentationComponent
iterator() → Iterator<ICell>

另请参阅

 中文