TcRange
paper-pptx 0.2.0 API reference
A 2D block of a:tc cell elements in a table.
This object assumes the structure of the underlying table does not change during its lifetime. Structural changes in this context would be insertion or removal of rows or columns.
The client is expected to create, use, and then abandon an instance in the context of a single user operation that is known to have no structural side-effects of this type.
TcRange(tc: CT_TableCell, other_tc: CT_TableCell)Attributes
contains_merged_cell
attributecontains_merged_cellboolTrue if one or more cells in range are part of a merged cell.
dimensions
attributedimensionstuple[int, int](row_count, col_count) pair describing size of range.
in_same_table
attributein_same_tableTrue if both cells provided to constructor are in same table.
Functions
from_merge_origin
funcfrom_merge_origin(tc: CT_TableCell)Return instance created from merge-origin tc element.
paramtcCT_TableCelliter_except_left_col_tcs
funciter_except_left_col_tcs()Generate each a:tc element not in leftmost column of range.
iter_except_top_row_tcs
funciter_except_top_row_tcs()Generate each a:tc element in non-first rows of range.
iter_left_col_tcs
funciter_left_col_tcs()Generate each a:tc element in leftmost column of range.
iter_tcs
funciter_tcs()Generate each a:tc element in this range.
Cell elements are generated left-to-right, top-to-bottom.
iter_top_row_tcs
funciter_top_row_tcs()Generate each a:tc element in topmost row of range.
move_content_to_origin
funcmove_content_to_origin()Move all paragraphs in range to origin cell.