
The MainText class represents the main text of a TX Text Control document. A TX Text Control document consists of the main text, and additionally other pieces of text such as text frames and headers or footers. The MainText class implements the IFormattedText interface. Differently from the TextControl or WPF.TextControl classes the MainText object's collections of the IFormattedText interface do not depend on the input focus. For example, the TextControl.Tables collection contains the tables of the main text, if the main text has the input focus, but it contains the tables of the text frame, if a text frame has the input focus. The MainText.Tables collection always contains the tables of the main text regardless of the input focus.
Introduced: 16.0.
[C#]
public class MainText
[Visual Basic]
Public Class MainText
| Property | Description | |
| ApplicationFields | Gets a collection of all Microsoft Word or Heiler HighEdit fields that have been created or imported from a Microsoft Word or RTF document. | |
| HypertextLinks | Gets a collection of all hypertext links contained in the main text of the document. | |
| Images | Gets a collection of all images contained in the main text of the document. | |
| Lines | Gets a collection of all text lines contained in the main text of the document. | |
| MisspelledWords | Gets a collection of all misspelled words contained in the main text of the document. | |
| Paragraphs | Gets a collection of all paragraphs contained in the main text of the document. | |
| Selection | Gets or sets the current selection in the main text of the document. | |
| Tables | Gets a collection of all tables contained in the main text of the document. | |
| TextChars | Gets a collection of all characters contained in the main text of the document. | |
| TextFields | Gets a collection of all standard text fields contained in the main text of the document. | |
| TextFrames | Gets a collection of all text frames contained in the main text of the document. |
| Method | Description | |
| Find | Finds a text string in the main text of the document. |