ICell
概述
ICell 是 Aspose.Slides FOSS 中用于 Java 的接口。
表示表格中的一个单元格。
此接口在 Java 程序中提供 33 个用于处理 ICell 对象的方法。可用的方法包括:getAsIPresentationComponent、getAsISlideComponent、getCellFormat、getColSpan、getFirstColumn、getFirstColumnIndex、getFirstRow、getFirstRowIndex、getHeight、getMarginBottom、getMarginLeft、getMarginRight,以及另外 21 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性有:anchorCenter、asIPresentationComponent、asISlideComponent、cellFormat、colSpan、firstColumn,以及另外 20 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
offsetX | double | 读取 | 返回表格左侧到单元格左侧的距离。 |
offsetY | double | 读取 | 返回表格顶部到单元格顶部的距离。 |
firstRowIndex | int | 读取 | 返回该单元格覆盖的第一行的索引。 |
firstColumnIndex | int | 读取 | 返回该单元格覆盖的第一列的索引。 |
width | double | 读取 | 返回单元格的宽度。 |
height | double | 读取 | 返回单元格的高度。 |
minimalHeight | double | 读取 | 返回单元格的最小高度。 |
marginLeft | double | 读取 | 返回或设置 TextFrame 中的左边距。 |
marginRight | double | 读取 | 返回或设置 TextFrame 中的右边距。 |
marginTop | double | 读取 | 返回或设置 TextFrame 中的上边距。 |
marginBottom | double | 读取 | 返回或设置 TextFrame 中的底部边距。 |
textVerticalType | TextVerticalType | 读取 | 返回或设置垂直文本的类型。 |
textAnchorType | TextAnchorType | 读取 | 返回或设置文本锚点类型。 |
anchorCenter | boolean | 读取 | 确定文本框是否居中于单元格内部。 |
firstRow | IRow | 读取 | 获取单元格的第一行。 |
firstColumn | IColumn | 读取 | 获取单元格的第一列。 |
colSpan | int | 读取 | 返回当前单元格跨越的网格列数。 |
rowSpan | int | 读取 | 返回合并单元格跨越的行数。 |
textFrame | ITextFrame | 读取 | 返回单元格的文本框。 |
table | ITable | 读取 | 返回单元格所属的父 Table 对象。 |
mergedCell | boolean | 读取 | 如果单元格与任何已调整的单元格合并,则返回 true。 |
cellFormat | ICellFormat | 读取 | 返回包含此单元格格式属性的 CellFormat 对象。 |
slide | IBaseSlide | 读取 | 返回单元格的父幻灯片。 |
presentation | IPresentation | 读取 | 返回单元格的父演示文稿。 |
asISlideComponent | ISlideComponent | 读取 | 将此单元格返回为 {@link ISlideComponent}。 |
asIPresentationComponent | IPresentationComponent | 读取 | 返回此单元格作为 {@link IPresentationComponent}。 |
方法
| 签名 | 描述 |
|---|---|
getOffsetX() → double | 返回表格左侧到单元格左侧的距离。 |
getOffsetY() → double | 返回表格顶部到单元格顶部的距离。 |
getFirstRowIndex() → int | 返回该单元格覆盖的第一行的索引。 |
getFirstColumnIndex() → int | 返回单元格覆盖的第一列的索引。 |
getWidth() → double | 返回单元格的宽度。 |
getHeight() → double | 返回单元格的高度。 |
getMinimalHeight() → double | 返回单元格的最小高度。 |
getMarginLeft() → double | 返回或设置 TextFrame 中的左边距。 |
setMarginLeft(value: double) | 设置左边距。 |
getMarginRight() → double | 返回或设置 TextFrame 中的右边距。 |
setMarginRight(value: double) | 设置右边距。 |
getMarginTop() → double | 返回或设置 TextFrame 中的上边距。 |
setMarginTop(value: double) | 设置上边距。 |
getMarginBottom() → double | 返回或设置 TextFrame 的底部边距。 |
setMarginBottom(value: double) | 设置底部边距。 |
getTextVerticalType() → TextVerticalType | 返回或设置垂直文本的类型。 |
setTextVerticalType(value: TextVerticalType) | 设置垂直文本的类型。 |
getTextAnchorType() → TextAnchorType | 返回或设置文本锚点类型。 |
setTextAnchorType(value: TextAnchorType) | 设置文本锚点类型。 |
isAnchorCenter() → boolean | 确定文本框是否居中于单元格内。 |
setAnchorCenter(value: boolean) | 设置文本框是否在单元格内居中。 |
getFirstRow() → IRow | 获取单元格的第一行。 |
getFirstColumn() → IColumn | 获取单元格的第一列。 |
getColSpan() → int | 返回当前单元格跨越的网格列数。 |
getRowSpan() → int | 返回合并单元格跨越的行数。 |
getTextFrame() → ITextFrame | 返回单元格的文本框。 |
getTable() → ITable | 返回单元格的父 Table 对象。 |
isMergedCell() → boolean | 如果单元格与任何已调整的单元格合并,则返回 true。 |
getCellFormat() → ICellFormat | 返回包含此单元格格式属性的 CellFormat 对象。 |
getSlide() → IBaseSlide | 返回单元格的父幻灯片。 |
getPresentation() → IPresentation | 返回单元格的父演示文稿。 |
getAsISlideComponent() → ISlideComponent | 将此单元格返回为 {@link ISlideComponent}。 |
getAsIPresentationComponent() → IPresentationComponent | 返回此单元格为 {@link IPresentationComponent}。 |