SectionClearHeadersFooters Method
Clears the headers and footers of this section.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.10
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.
[C#]

Document doc = new Document(MyDir + "Document.doc");
Section section = doc.Sections[0];
section.ClearHeadersFooters();
See Also