Free Support Forum -

Paragraph.clearParaAttrs() deprecated

Just update Aspose Words from 15.2.0 to 15.6.0 and noticed a deprecation warning on:

What should I use instead, searched the web did not find anything?

Hi Peter,

Thanks for your inquiry. Please note that Paragraph.clearParaAttrs is not public API. Please use ParagraphFormat.clearFormatting method to reset to default paragraph formatting. Default paragraph formatting is Normal style, left aligned, no indentation, no spacing, no borders and no shading.