TXTextControl.HeaderFooterCollection Class

An instance of the HeaderFooterCollection class contains the headers and footers in a Text Control document represented through objects of the type HeaderFooter. An instance of this class can be either obtained through the TextControl.HeadersAndFooters or through the Section.HeadersAndFooters property. The first collection represents headers and footers common to all sections of the document and the second collection represents the headers and footers of a certain section. The HeaderFooterCollection class implements the IEnumerable and the ICollection interface.

Syntax

[C#]
public class HeaderFooterCollection: ICollection, IEnumerable
[Visual Basic]
Public Class HeaderFooterCollection
  Implements ICollection
  Implements IEnumerable

Properties

Property Description
Count Gets the number of elements contained in the collection.

Methods

Method Description
Add Adds a new header or footer to a Text Control document or to a certain section of the document.
CopyTo Copies the elements of the collection to an array, starting at a particular index.
GetEnumerator Returns an enumerator that can be used to iterate through the collection.
GetItem Gets a particular header or footer from the collection.
Remove Removes a header or footer from a Text Control document or from a certain section.

See Also