TextFieldCollection Class
An instance of the TextFieldCollection class contains all standard text fields in a Text Control document or part of the document represented through objects of the type TextField. An instance of this class can be obtained with the TextControl.TextFields, HeaderFooter.TextFields or TextFrame.TextFields property. The TextFieldCollection class implements the IEnumerable and the ICollection interface. For more information see the technical article Text Fields and Hypertext Links.
Syntax
[C#]
public sealed class TextFieldCollection: ICollection, IEnumerable
[Visual Basic]
Public NotInheritable Class TextFieldCollection
Implements ICollection
Implements IEnumerable
Properties
| Property | | Description |
| CanAdd | | Gets a value indicating whether a new text field can be inserted at the current input position. |
| Count | | Gets the number of elements contained in the collection. |
Methods
| Method | | Description |
| Add | | Inserts a new standard text field at the current input position. |
| Clear | | Removes all text fields from a Text Control 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 text field from the collection. |
| Remove | | Removes a text field from a Text Control document. |
See Also