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_xfloat读取返回表格左侧到单元格左侧的距离。
offset_yfloat读取返回表格顶部到单元格顶部的距离。
first_row_indexint读取返回该单元格覆盖的第一行的索引。
first_column_indexint读取返回该单元格覆盖的第一列的索引。
widthfloat读取返回单元格的宽度。
heightfloat读取返回单元格的高度。
minimal_heightfloat读取返回单元格的最小高度。
margin_leftfloat读写返回或设置 TextFrame 中的左边距。
margin_rightfloat读写返回或设置 TextFrame 中的右边距。
margin_topfloat读写返回或设置 TextFrame 中的上边距。
margin_bottomfloat读写返回或设置 TextFrame 中的底部边距。
text_vertical_typeTextVerticalType读写返回或设置垂直文本的类型。
text_anchor_typeTextAnchorType读写返回或设置文本锚点类型。
anchor_centerbool读写确定文本框是否居中在单元格内。
first_rowIRow读取获取单元格的第一行。
first_columnIColumn读取获取单元格的第一列。
col_spanint读取返回父表的表格网格中当前单元格应跨越的列数。
row_spanint读取返回合并单元格跨越的行数。
text_frameITextFrame读取返回单元格的文本框。
tableITable读取返回单元格所属的父 Table 对象。
is_merged_cellbool读取如果单元格与任何已调整的单元格合并,则返回 true,否则返回 false。
cell_formatICellFormat读取返回包含此单元格格式属性的 CellFormat 对象。
slideIBaseSlide读取返回单元格的父幻灯片。
presentationIPresentation读取返回单元格的父演示文稿。
as_i_slide_componentISlideComponent读取获取 as i slide 组件。
as_i_presentation_componentIPresentationComponent读取获取 as i 展示组件。

另请参阅

 中文