com.spire.doc
Class HeadersFooters

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.HeadersFooters
All Implemented Interfaces:
IDocumentSerializable, java.lang.Iterable

public class HeadersFooters
extends DocumentSerializable
implements java.lang.Iterable


Method Summary
 HeaderFooter get(int index)
          Gets TextBody at specified index.
 HeaderFooter getByHeaderFooterType(HeaderFooterType hfType)
          Gets TextBody by specified HeaderFooter type.
 HeaderFooter getEvenFooter()
          Gets even footer
 HeaderFooter getEvenHeader()
          Gets even header.
 HeaderFooter getFirstPageFooter()
          Gets first page footer.
 HeaderFooter getFirstPageHeader()
          Gets first page header.
 HeaderFooter getFooter()
          Gets default footer.
 HeaderFooter getHeader()
          Gets default header.
 boolean getLinkToPrevious()
          If set to True if this header or footer is linked in the previous section.
 HeaderFooter getOddFooter()
          Gets odd footer ( This is also the default footer ).
 HeaderFooter getOddHeader()
          Gets odd header ( This is also the default header ).
 boolean isEmpty()
          Detects whether all headers/footers are empty.
 java.util.Iterator iterator()
          Returns an enumerator that iterates through a collection.
 void setLinkToPrevious(boolean value)
          If set to True if this header or footer is linked in the previous section.
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Method Detail

getHeader

public HeaderFooter getHeader()
Gets default header.


getFooter

public HeaderFooter getFooter()
Gets default footer.


getEvenHeader

public HeaderFooter getEvenHeader()
Gets even header.


getOddHeader

public HeaderFooter getOddHeader()
Gets odd header ( This is also the default header ).


getEvenFooter

public HeaderFooter getEvenFooter()
Gets even footer


getOddFooter

public HeaderFooter getOddFooter()
Gets odd footer ( This is also the default footer ).


getFirstPageHeader

public HeaderFooter getFirstPageHeader()
Gets first page header.


getFirstPageFooter

public HeaderFooter getFirstPageFooter()
Gets first page footer.


isEmpty

public boolean isEmpty()
Detects whether all headers/footers are empty.


get

public HeaderFooter get(int index)
Gets TextBody at specified index.

Parameters:
index -
Returns:

getByHeaderFooterType

public HeaderFooter getByHeaderFooterType(HeaderFooterType hfType)
Gets TextBody by specified HeaderFooter type.

Parameters:
hfType -
Returns:

getLinkToPrevious

public boolean getLinkToPrevious()
If set to True if this header or footer is linked in the previous section.


setLinkToPrevious

public void setLinkToPrevious(boolean value)
If set to True if this header or footer is linked in the previous section.


iterator

public java.util.Iterator iterator()
Returns an enumerator that iterates through a collection.

Returns:
An object that can be used to iterate through the collection.