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

Method width

src/docx/oxml/table.py:409–413  ·  view source on GitHub ↗

EMU length indicated by the combined `w:w` and `w:type` attrs.

(self)

Source from the content-addressed store, hash-verified

407
408 @property
409 def width(self) -> Length | None:
410 """EMU length indicated by the combined `w:w` and `w:type` attrs."""
411 if self.type != "dxa":
412 return None
413 return Twips(self.w)
414
415 @width.setter
416 def width(self, value: Length):

Callers

nothing calls this directly

Calls 2

TwipsClass · 0.90
EmuClass · 0.90

Tested by

no test coverage detected