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(ARTIFACTS_DIR + "Styles.remove_styles_from_style_gallery.docx")
See Also
- module aspose.words
- class StyleCollection