SectionClearHeadersFooters Method

Clears the headers and footers of this section.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void ClearHeadersFooters()
Remarks

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.

Examples
Clears content of all headers and footers in a section.
Document doc = new Document(MyDir + "Document.docx");
Section section = doc.Sections[0];
section.ClearHeadersFooters();
See Also