ICell

ICell class

Represents a cell in a table.

The ICell type exposes the following members:

Properties

Name Description
offset_x Returns a distance from left side of a table to left side of a cell.
Read-only float.
offset_y Returns a distance from top side of a table to top side of a cell.
Read-only float.
first_row_index Returns an index of first row, covered by the cell.
Read-only
first_column_index Returns an index of first column, covered by the cell.
Read-only
width Returns the width of the cell.
Read-only float.
height Returns the height of the cell.
Read-only float.
minimal_height Returns the minimum height of a cell.
This is a sum of minimal heights of all rows cowered by the cell.
Read-only float.
margin_left Returns or sets the left margin in a TextFrame.
Read/write float.
margin_right Returns or sets the right margin in a TextFrame.
Read/write float.
margin_top Returns or sets the top margin in a TextFrame.
Read/write float.
margin_bottom Returns or sets the bottom margin in a TextFrame.
Read/write float.
text_vertical_type Returns or sets the type of vertical text.
Read/write TextVerticalType.
text_anchor_type Returns or sets the text anchor type.
Read/write TextAnchorType.
anchor_center Determines whether or not text box centered inside a cell.
Read/write bool.
first_column Gets first column of cell.
Read-only IColumn.
first_row Gets first row of cell.
Read-only IRow.
col_span Returns the number of grid columns in the parent table’s table grid
which shall be spanned by the current cell. This property allows cells
to have the appearance of being merged, as they span vertical boundaries
of other cells in the table.
Read-only
row_span Returns the number of rows that a merged cell spans. This is used in combination
with the vMerge attribute on other cells in order to specify the beginning cell
of a horizontal merge.
Read-only
text_frame Returns the text frame of a cell.
Read-only ITextFrame.
table Returns the parent Table object for a cell.
Read-only ITable.
is_merged_cell Returns true if the cell is merged with any adjusted cell, false otherwise.
Read-only bool.
cell_format Returns the CellFormat object that contains formatting properties for this cell.
Read-only ICellFormat.
as_i_slide_component Allows to get base ISlideComponent interface.
Read-only ISlideComponent.
slide Returns the base slide.
Read-only IBaseSlide.
as_i_presentation_component Allows to get base IPresentationComponent interface.
Read-only IPresentationComponent.
presentation Returns the presentation.
Read-only IPresentation.

Methods

Name Description
split_by_col_span(index) Splits the cell to two cells by index of column.
split_by_row_span(index) Splits the cell to two cells by index of row.
split_by_height(height) Splits the cell by height.
split_by_width(width) Splits the cell by width.

See Also