public void SectionsDeleteHeaderFooter()
{
//ExStart
//ExFor:Section.ClearHeadersFooters
//ExId:SectionsDeleteHeaderFooter
//ExSummary:Clears content of all headers and footers in a section.
Document doc = new Document(MyDir + "Document.doc");
Section section = doc.Sections[0];
section.ClearHeadersFooters();
//ExEnd
}