SectionClearHeadersFooters Method |
Namespace: Aspose.Words
The text of all headers and footers is cleared, but HeaderFooter objects themselves are not removed.
This makes headers and footers of this section linked to headers and footers of the previous section.
Document doc = new Document(MyDir + "Document.docx"); Section section = doc.Sections[0]; section.ClearHeadersFooters();