StyleRemove Method

Removes the specified style from the document.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void Remove()
Remarks
Style removal has following effects on the document model:
  • All references to the style are removed from corresponding paragraphs, runs and tables.
  • If base style is removed its formatting is moved to child styles.
  • If style to be deleted has a linked style, then both of these are deleted.
Examples
Shows how to pick a style that is defined in the document and remove it.
Document doc = new Document();
doc.Styles["Normal"].Remove();
See Also