HeaderFooter constructor

HeaderFooter(doc, headerFooterType)

Creates a new header or footer of the specified type.

HeaderFooter(doc: Aspose.Words.DocumentBase, headerFooterType: Aspose.Words.HeaderFooterType)
ParameterTypeDescription
docDocumentBaseThe owner document.
headerFooterTypeHeaderFooterTypeA HeaderFooter.headerFooterType value that specifies the type of the header or footer.

Remarks

When HeaderFooter is created, it belongs to the specified document, but is not yet part of the document and Node.parentNode is null.

To append HeaderFooter to a Section use CompositeNode.insertAfter(), CompositeNode.insertBefore(), or Section.headersFooters property and methods NodeCollection.add(), NodeCollection.insert().

See Also