SectionDeleteHeaderFooterShapes Method |
Deletes all shapes (drawing objects) from the headers and footers of this section.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic void DeleteHeaderFooterShapes()
Public Sub DeleteHeaderFooterShapes
public:
void DeleteHeaderFooterShapes()
member DeleteHeaderFooterShapes : unit -> unit
ExamplesRemoves all images and shapes from all headers footers in a section.
Document doc = new Document(MyDir + "Document.docx");
Section section = doc.Sections[0];
section.DeleteHeaderFooterShapes();
See Also