semi_hidden property

Style.semi_hidden property

Gets/sets whether the style hides from the Styles gallery and from the Styles task pane.

@property
def semi_hidden(self) -> bool:
    ...

@semi_hidden.setter
def semi_hidden(self, value: bool):
    ...

Examples

Shows how to prioritize and hide a style.

doc = aw.Document()
style_title = doc.styles.get_by_style_identifier(aw.StyleIdentifier.SUBTITLE)
if style_title.priority == 9:
    style_title.priority = 10
if not style_title.unhide_when_used:
    style_title.unhide_when_used = True
if style_title.semi_hidden:
    style_title.semi_hidden = True
doc.save(file_name=ARTIFACTS_DIR + 'Styles.StylePriority.docx')

See Also