Overloads
AddHeader(IDocumentHeader header)
Adds an existing header to the section.
AddHeader(HeaderFooterType headerType)
Creates and adds a new header of the specified type to the section.
AddHeader(IDocumentHeader header)
IDocumentHeader AddHeader(IDocumentHeader header)Adds an existing header to the section.
Parameters
- header
- The header instance to add.
Exceptions
- System.Exception: Thrown when a header of the same already exists. HeaderFooterType
AddHeader(HeaderFooterType headerType)
IDocumentHeader AddHeader(HeaderFooterType headerType)Creates and adds a new header of the specified type to the section.
Parameters
- headerType
- The type of header to create (for example, default or first page).