Cell
概述
Cell 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:ICell、ISlideComponent、IPresentationComponent。
表示表格中的单元格。
属性:anchor_center、as_i_presentation_component、as_i_slide_component、cell_format、col_span、first_column,以及另外 20 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
offset_x | float | 读取 | 返回表格左侧到单元格左侧的距离。 |
offset_y | float | 读取 | 返回表格顶部到单元格顶部的距离。 |
first_row_index | int | 读取 | 返回该单元格覆盖的第一行的索引。 |
first_column_index | int | 读取 | 返回该单元格覆盖的第一列的索引。 |
width | float | 读取 | 返回单元格的宽度。 |
height | float | 读取 | 返回单元格的高度。 |
minimal_height | float | 读取 | 返回单元格的最小高度。 |
margin_left | float | 读写 | 返回或设置 TextFrame 中的左边距。 |
margin_right | float | 读写 | 返回或设置 TextFrame 中的右边距。 |
margin_top | float | 读写 | 返回或设置 TextFrame 中的上边距。 |
margin_bottom | float | 读写 | 返回或设置 TextFrame 中的底部边距。 |
text_vertical_type | TextVerticalType | 读写 | 返回或设置垂直文本的类型。 |
text_anchor_type | TextAnchorType | 读写 | 返回或设置文本锚点类型。 |
anchor_center | bool | 读写 | 确定文本框是否居中在单元格内。 |
first_row | IRow | 读取 | 获取单元格的第一行。 |
first_column | IColumn | 读取 | 获取单元格的第一列。 |
col_span | int | 读取 | 返回父表的表格网格中当前单元格应跨越的列数。 |
row_span | int | 读取 | 返回合并单元格跨越的行数。 |
text_frame | ITextFrame | 读取 | 返回单元格的文本框。 |
table | ITable | 读取 | 返回单元格所属的父 Table 对象。 |
is_merged_cell | bool | 读取 | 如果单元格与任何已调整的单元格合并,则返回 true,否则返回 false。 |
cell_format | ICellFormat | 读取 | 返回包含此单元格格式属性的 CellFormat 对象。 |
slide | IBaseSlide | 读取 | 返回单元格的父幻灯片。 |
presentation | IPresentation | 读取 | 返回单元格的父演示文稿。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 展示组件。 |