clear_quick_style_gallery method

clear_quick_style_gallery()

Removes all styles from the Quick Style Gallery panel.

def clear_quick_style_gallery(self):
    ...

Examples

Shows how to remove styles from Style Gallery panel.

doc = aw.Document()
# Note that remove styles work only with DOCX format for now.
doc.styles.clear_quick_style_gallery()
doc.save(file_name=ARTIFACTS_DIR + 'Styles.RemoveStylesFromStyleGallery.docx')

See Also