TXTextControl.TextCharCollection Class

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.

Introduced: 10.1.

Syntax

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

Properties

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

Methods

Method Description
Add Overloaded. 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.
Item Gets the character from the collection.
Remove Removes a character from a Text Control document.

See Also