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

Class CT_PageMar

src/docx/oxml/section.py:60–83  ·  view source on GitHub ↗

`` `` element, defining page margins.

Source from the content-addressed store, hash-verified

58
59
60class CT_PageMar(BaseOxmlElement):
61 """``<w:pgMar>`` element, defining page margins."""
62
63 top: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
64 "w:top", ST_SignedTwipsMeasure
65 )
66 right: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
67 "w:right", ST_TwipsMeasure
68 )
69 bottom: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
70 "w:bottom", ST_SignedTwipsMeasure
71 )
72 left: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
73 "w:left", ST_TwipsMeasure
74 )
75 header: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
76 "w:header", ST_TwipsMeasure
77 )
78 footer: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
79 "w:footer", ST_TwipsMeasure
80 )
81 gutter: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
82 "w:gutter", ST_TwipsMeasure
83 )
84
85
86class CT_PageSz(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

OptionalAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…