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

Method line_spacing_rule

src/docx/text/parfmt.py:134–145  ·  view source on GitHub ↗

A member of the :ref:`WdLineSpacing` enumeration indicating how the value of :attr:`line_spacing` should be interpreted. Assigning any of the :ref:`WdLineSpacing` members :attr:`SINGLE`, :attr:`DOUBLE`, or :attr:`ONE_POINT_FIVE` will cause the value of :attr:`line_sp

(self)

Source from the content-addressed store, hash-verified

132
133 @property
134 def line_spacing_rule(self):
135 """A member of the :ref:`WdLineSpacing` enumeration indicating how the value of
136 :attr:`line_spacing` should be interpreted.
137
138 Assigning any of the :ref:`WdLineSpacing` members :attr:`SINGLE`,
139 :attr:`DOUBLE`, or :attr:`ONE_POINT_FIVE` will cause the value of
140 :attr:`line_spacing` to be updated to produce the corresponding line spacing.
141 """
142 pPr = self._element.pPr
143 if pPr is None:
144 return None
145 return self._line_spacing_rule(pPr.spacing_line, pPr.spacing_lineRule)
146
147 @line_spacing_rule.setter
148 def line_spacing_rule(self, value):

Callers

nothing calls this directly

Calls 2

_line_spacing_ruleMethod · 0.95
TwipsClass · 0.90

Tested by

no test coverage detected