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 = MakeObject<Document>();

// Note that remove styles work only with DOCX format for now.
doc->get_Styles()->ClearQuickStyleGallery();

doc->Save(ArtifactsDir + u"Styles.RemoveStylesFromStyleGallery.docx");

See Also