MCPcopy Create free account
hub / github.com/scanny/python-pptx / from_merge_origin

Method from_merge_origin

src/pptx/oxml/table.py:464–470  ·  view source on GitHub ↗

Return instance created from merge-origin tc element.

(cls, tc: CT_TableCell)

Source from the content-addressed store, hash-verified

462
463 @classmethod
464 def from_merge_origin(cls, tc: CT_TableCell):
465 """Return instance created from merge-origin tc element."""
466 other_tc = tc.tbl.tc(
467 tc.row_idx + tc.rowSpan - 1, # ---other_row_idx
468 tc.col_idx + tc.gridSpan - 1, # ---other_col_idx
469 )
470 return cls(tc, other_tc)
471
472 @lazyproperty
473 def contains_merged_cell(self) -> bool:

Callers 1

splitMethod · 0.80

Calls 1

tcMethod · 0.80

Tested by

no test coverage detected