SectionClearContent Method |
Namespace: Aspose.Words
The text of Body is cleared, only one empty paragraph is left that represents the section break.
The text of all headers and footers is cleared, but HeaderFooter objects themselves are not removed.
Document doc = new Document(MyDir + "Document.docx"); Section section = doc.Sections[0]; section.ClearContent();