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

Method add_latent_style

src/docx/styles/latent.py:26–31  ·  view source on GitHub ↗

Return a newly added |_LatentStyle| object to override the inherited defaults defined in this latent styles object for the built-in style having `name`.

(self, name)

Source from the content-addressed store, hash-verified

24 return len(self._element.lsdException_lst)
25
26 def add_latent_style(self, name):
27 """Return a newly added |_LatentStyle| object to override the inherited defaults
28 defined in this latent styles object for the built-in style having `name`."""
29 lsdException = self._element.add_lsdException()
30 lsdException.name = BabelFish.ui2internal(name)
31 return _LatentStyle(lsdException)
32
33 @property
34 def default_priority(self):

Calls 2

_LatentStyleClass · 0.85
ui2internalMethod · 0.80

Tested by 1