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 个。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
height | double | 读取 | {@inheritDoc} 当 XML 支持时,从 {@code <a:tr>} 元素读取 {@code h} 属性并将 EMU 转换为点。 |
minimalHeight | double | 读取 | {@inheritDoc} 当 XML 支持时,从 {@code <a:tr>} 元素读取 {@code h} 属性并将 EMU 转换为点。 |
rowFormat | IRowFormat | 读取 | {@inheritDoc} |
asICellCollection | ICellCollection | 读取 | {@inheritDoc} |
asIBulkTextFormattable | IBulkTextFormattable | 读取 | {@inheritDoc} |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
slidePart | Object | 读取 | 返回与此集合关联的幻灯片部分。 |
presentation | IPresentation | 读取 | 获取表示。 |
方法
| 签名 | 描述 |
|---|---|
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> |