Aspose::Words::StyleCollection::ClearQuickStyleGallery method
StyleCollection::ClearQuickStyleGallery method
Removes all styles from the Quick Style Gallery panel.
void Aspose::Words::StyleCollection::ClearQuickStyleGallery()
Examples
Shows how to remove styles from Style Gallery panel.
auto doc = System::MakeObject<Aspose::Words::Document>();
// Note that remove styles work only with DOCX format for now.
doc->get_Styles()->ClearQuickStyleGallery();
doc->Save(get_ArtifactsDir() + u"Styles.RemoveStylesFromStyleGallery.docx");
See Also
- Class StyleCollection
- Namespace Aspose::Words
- Library Aspose.Words for C++