def _set_anchor(self, anchor_enum_idx): """ Set value of anchor attribute on ``<a:tcPr>`` child element """ anchor = MSO_ANCHOR.to_xml(anchor_enum_idx) if anchor is None: return self._clear_anchor() tcPr = self.get_or_add_tcPr() tcPr.set('anchor', anchor)
def anchor(self): """ String held in ``anchor`` attribute of ``<a:tcPr>`` child element of this ``<a:tc>`` element. """ if self.tcPr is None: return None anchor = self.tcPr.get('anchor') return MSO_ANCHOR.from_xml(anchor)