We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can I remove style from document?

How can I remove style from document?

Hi Alexey,


Thanks for your inquiry. You can remove the specified style from the document by using
the Style.Remove method. 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.

Please let us know if you have any more queries.