Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)