Click or drag to resize
HeaderFooter Class
Represent a header / footer for the parent Section.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public sealed class HeaderFooter : Element, 
	IContentElement

The HeaderFooter type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBlocks
Gets the header / footer content.
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Inherited from Element.)
Public propertyElementType
Gets the ElementType of this Element instance.
(Overrides ElementElementType.)
Public propertyHeaderFooterType
Gets the type of the header / footer.
Public propertyIsHeader
Gets a value indicating whether this instance is header.
Public propertyParent
Gets the parent Section of this HeaderFooter instance.
Public propertyParentCollection
Gets the HeaderFooterCollection that contains this HeaderFooter instance.
Top
Methods
  NameDescription
Public methodClone(Boolean)
Clones this HeaderFooter instance.
Public methodClone(HeaderFooterType)
Clones this HeaderFooter instance and sets new HeaderFooterType.
Public methodGetChildElements(Boolean)
Gets the child elements.
(Inherited from Element.)
Public methodGetChildElements(Boolean, ElementType)
Gets the child elements filtered by ElementType.
(Inherited from Element.)
Top
Explicit Interface Implementations
Remarks

HeaderFooter is a special document content element that is not a part of a main document content, instead, it is repeated at the beginning (if IsHeader is ) or at the end of every page (first page, even pages or all pages) that is showing the parent Section's content.

HeaderFooter is a content element containing of Block derived elements that can be accessed through HeaderFooter.Blocks property. For more information, see GemBox.Document Content Model.

For more information about headers and footers, see header / footer sample.

See Also