HeaderFooter¶
Represents a header or a footer of a section.
Capabilities¶
Headers and Footers¶
- HeaderFooter.Blocks: Gets the blocks in the header or footer.
- HeaderFooter.HeaderFooterType: Gets the header or footer type.
- HeaderFooter.IsHeader: Gets a value indicating whether this instance is a header.
Properties¶
- HeaderFooter.Content: Gets the content range of the element, for example to replace text only inside this element.
- HeaderFooter.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Methods¶
- HeaderFooter.Clone: Creates a copy of the element. The copy is not part of the document until it is added to a collection with the collection's
Appendmethod, such as BlockCollection.Append. - HeaderFooter.GetChildElements: Returns the child elements.
- HeaderFooter.GetParentElements: Returns the ancestors of the element, starting from the direct parent.