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

Method left_margin

src/docx/oxml/section.py:272–279  ·  view source on GitHub ↗

The value of the ``w:left`` attribute in the `` `` child element, as a |Length| object, or |None| if either the element or the attribute is not present.

(self)

Source from the content-addressed store, hash-verified

270
271 @property
272 def left_margin(self) -> Length | None:
273 """The value of the ``w:left`` attribute in the ``<w:pgMar>`` child element, as
274 a |Length| object, or |None| if either the element or the attribute is not
275 present."""
276 pgMar = self.pgMar
277 if pgMar is None:
278 return None
279 return pgMar.left
280
281 @left_margin.setter
282 def left_margin(self, value: int | Length | None):

Callers

nothing calls this directly

Calls 1

LengthClass · 0.90

Tested by

no test coverage detected