API Reference
Class
WordHeadersAndFooters
Helper methods for adding and retrieving headers and footers in Word documents.
Inheritance
- Object
- WordHeadersAndFooters
Methods
AddHeadersAndFooters 2 overloads
AddSectionProperties(DocumentFormat.OpenXml.Packaging.WordprocessingDocument wordDocument) #Add section property to the document
Parameters
- wordDocument DocumentFormat.OpenXml.Packaging.WordprocessingDocument
CreateSectionProperties 2 overloads
CreateSectionProperties() #Create a new section properties container.
Returns
Empty section properties element with a unique rsid.
CreateSectionProperties(System.Boolean includeDefaultPageSettings) #Create a new section properties container.
Parameters
- includeDefaultPageSettings System.Boolean
- When true, includes default Letter page size and Normal margins.
Returns
Section properties element.
GenerateRevisionId() #Generate a unique revision id used by InsertedRun and DeletedRun elements.
Returns
Revision identifier as decimal string.
GenerateRsid() #Generate a unique rsid
MakeSureSectionIsValid(DocumentFormat.OpenXml.Wordprocessing.SectionProperties sectionProperties) #Some documents might not have section properties with proper rsidR. This method will fix that. Due to the nature of the rsidR, it is important to have unique rsidR for each section. Otherwise, comparison of sections will not work properly.
Parameters
- sectionProperties DocumentFormat.OpenXml.Wordprocessing.SectionProperties
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object