Return instance created from merge-origin tc element.
(cls, tc: CT_TableCell)
| 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: |