MCPcopy Index your code
hub / github.com/python-openxml/python-docx / new

Method new

src/docx/oxml/table.py:520–522  ·  view source on GitHub ↗

A new `w:tc` element, containing an empty paragraph as the required EG_BlockLevelElt.

(cls)

Source from the content-addressed store, hash-verified

518
519 @classmethod
520 def new(cls) -> CT_Tc:
521 """A new `w:tc` element, containing an empty paragraph as the required EG_BlockLevelElt."""
522 return cast(CT_Tc, parse_xml("<w:tc %s><w:p/></w:tc>" % nsdecls("w")))
523
524 @property
525 def right(self) -> int:

Calls 2

parse_xmlFunction · 0.90
nsdeclsFunction · 0.90