An instance of the TextCharCollection class contains all characters in a Text Control document or part of the document represented through objects of the type TextChar. An instance of this class can be obtained with the TextControl.TextChars, HeaderFooter.TextChars or TextFrame.TextChars property. The TextCharCollection class implements the IEnumerable and the ICollection interfaces.


public class TextCharCollection : ICollection, IEnumerable
Public Class TextCharCollection
  Implements ICollection
  Implements IEnumerable

Introduced: 10.1.


Method Description
Add Adds a character to 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 character from the collection specified through a certain geometrical position.
Remove Removes a character from a Text Control document.


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