TX Text Control .NET Documentation

PageNumberFieldCollection Class

An instance of the PageNumberFieldCollection class contains the page number fields in a header or footer of a Text Control document. Page number fields are represented through objects of the type PageNumberField. An instance of this class can be obtained with the HeaderFooter.PageNumberFields property. The PageNumberFieldCollection class implements the IEnumerable and the ICollection interfaces. For more information see the technical article Text Fields and Hypertext Links.

Syntax:
[C#] public sealed class PageNumberFieldCollection: ICollection, IEnumerable
[Visual Basic] Public NotInheritable Class PageNumberFieldCollection Implements ICollection Implements IEnumerable

Properties

PropertyDescription
CanAddGets a value indicating whether a new page number field can be inserted at the current input position of a header or footer.

CountGets the number of elements contained in the collection.

Methods

MethodDescription
AddInserts a new page number field at the current input position of a header or footer.

CopyToCopies the elements of the collection to an array, starting at a particular index.

GetEnumeratorReturns an enumerator that can be used to iterate through the collection.

RemoveRemoves a page number from a header or footer of a Text control document.

See also:Headers and Footers, Graphical Overview.