Cell

概述

Cell 是 Aspose.Slides FOSS 用于 Java 的一个类。继承自:ICell、ISlideComponent、IPresentationComponent。

表示表格中的一个单元格。

此类提供了 41 个用于在 Java 程序中处理 Cell 对象的方法。可用的方法包括:Cell、asIPresentationComponent、ensureTcPr、getAsIPresentationComponent、getAsISlideComponent、getCellFormat、getColSpan、getFirstColumn、getFirstColumnIndex、getFirstRow、getFirstRowIndex、getHeight,以及另外 27 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性包括:anchorCenter、asIPresentationComponent、asISlideComponent、cellFormat、colSpan、firstColumn,以及另外 22 项。

属性

名称类型访问描述
tcPrElement读取返回支撑 {@code <a:tc>} 元素的 {@code <a:tcPr>} 子元素。
offsetXdouble读取获取偏移量 x。
offsetYdouble读取获取偏移量 y。
firstRowIndexint读取获取第一行索引。
firstColumnIndexint读取获取第一列索引。
widthdouble读取获取宽度。
heightdouble读取获取高度。
minimalHeightdouble读取获取最小高度。
marginLeftdouble读取获取左边距。
marginRightdouble读取获取右边距。
marginTopdouble读取获取上边距。
marginBottomdouble读取获取下边距。
textVerticalTypeTextVerticalType读取获取文本的垂直类型。
textAnchorTypeTextAnchorType读取获取文本锚点类型。
anchorCenterboolean读取获取锚点中心。
firstRowIRow读取获取第一行。
firstColumnIColumn读取获取第一列。
colSpanint读取获取列跨度。
rowSpanint读取获取行跨度。
textFrameITextFrame读取获取文本框。
tableITable读取获取表格。
mergedCellboolean读取获取合并的单元格。
cellFormatICellFormat读取获取单元格格式。
slideIBaseSlide读取获取幻灯片。
presentationIPresentation读取获取表示。
tcElementElement读取返回底层 {@code <a:tc>} XML 元素。
asISlideComponentISlideComponent读取获取 as i slide 组件。
asIPresentationComponentIPresentationComponent读取获取作为 i 演示组件。

方法

签名描述
Cell()创建一个没有后备元素的空 {@code Cell}。
Cell(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable)创建一个由给定 {@code <a:tc>} 元素支持的新 Cell。
Cell(tcElement: Element, saveCallback: Runnable)创建一个由给定 {@code <a:tc>} 元素支持的新 Cell。
initInternal(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable) → Cell从给定的 {@code <a:tc>} 元素和表格上下文初始化此单元格。
getTcPr() → Element返回 backing {@code <a:tc>} 元素的 {@code <a:tcPr>} 子元素。
ensureTcPr() → Element返回 {@code <a:tcPr>} 子元素,如果不存在则创建它。
getOffsetX() → double返回偏移量 x。
getOffsetY() → double返回偏移量 y。
getFirstRowIndex() → int返回第一行索引。
getFirstColumnIndex() → int返回第一列索引。
getWidth() → double返回宽度。
getHeight() → double返回高度。
getMinimalHeight() → double返回最小高度。
getMarginLeft() → double返回左边距。
setMarginLeft(value: double)设置左边距的值。
getMarginRight() → double返回右边距。
setMarginRight(value: double)设置右边距的值。
getMarginTop() → double返回上边距。
setMarginTop(value: double)设置上边距的值。
getMarginBottom() → double返回下边距。
setMarginBottom(value: double)设置底部边距值。
getTextVerticalType() → TextVerticalType返回文本垂直类型。
setTextVerticalType(value: TextVerticalType)设置文本垂直类型值。
getTextAnchorType() → TextAnchorType返回文本锚点类型。
setTextAnchorType(value: TextAnchorType)设置文本锚点类型的值。
isAnchorCenter() → boolean如果已设置锚点中心,则返回 true。
setAnchorCenter(value: boolean)设置锚点中心值。
getFirstRow() → IRow返回第一行。
getFirstColumn() → IColumn返回第一列。
getColSpan() → int返回列跨度。
getRowSpan() → int返回行跨度。
getTextFrame() → ITextFrame返回文本框。
getTable() → ITable返回表格。
isMergedCell() → boolean如果合并单元格已设置,则返回 true。
getCellFormat() → ICellFormat返回单元格格式。
getSlide() → IBaseSlide返回幻灯片。
getPresentation() → IPresentation返回演示。
getTcElement() → Element返回底层 {@code <a:tc>} XML 元素。
getAsISlideComponent() → ISlideComponent返回 as i 幻灯片组件。
getAsIPresentationComponent() → IPresentationComponent返回 as i 演示组件。
asIPresentationComponent() → IPresentationComponent

另请参阅

 中文