Click or drag to resize

HeadersFooters Class

Represents the headers and footers of a document. Implements the DocumentSerializable interface for serialization capabilities and IEnumerable for iteration over its elements.
Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Documents.XML DocumentSerializable
Spire.Doc HeadersFooters

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class HeadersFooters : DocumentSerializable, 
	IEnumerable

The HeadersFooters type exposes the following members.

Properties
Name Description
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property EvenFooter
Gets even footer
Public property EvenHeader
Gets even header.
Public property FirstPageFooter
Gets first page footer.
Public property FirstPageHeader
Gets first page header.
Public property Footer
Gets default footer.
Public property Header
Gets default header.
Public property IsEmpty
Detects whether all headers/footers are empty.
Public property Item Int32
Gets TextBody at specified index.
Public property Item HeaderFooterType
Gets TextBody by specified HeaderFooter type.
Public property LinkToPrevious
If set to True if this header or footer is linked in the previous section.
Public property OddFooter
Gets odd footer ( This is also the default footer ).
Public property OddHeader
Gets odd header ( This is also the default header ).
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Protected method CloneImpl (Overrides DocumentSerializable CloneImpl .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Inherited from DocumentSerializable .)
Protected method ReadXmlContent (Inherited from DocumentSerializable .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Protected method WriteXmlAttributes (Inherited from DocumentSerializable .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also