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.

Syntax

public class MainText
Public Class MainText

Introduced: 16.0.

Methods

Method Description
Find Finds a text string in the main text of the document.
GetTextFields Returns a collection containing text fields of the specified types.

Properties

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.
Barcodes Gets a collection of all barcodes contained in the main text of the document.
Charts Gets a collection of all charts contained in the main text of the document.
Comments Gets a collection of all comments in the main text of the document.
DocumentLinks Gets a collection of all links in the main text of the document which point to targets in the same document.
DocumentTargets Gets a collection of all targets in the main text of the document.
Drawings Gets a collection of all drawings contained in the main text of the document.
FormFields Gets a collection of all form fields contained in the main text of the document.
Frames Gets a collection of all images, textframes, charts, barcodes and drawings contained in the main text of the 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.
SubTextParts Gets a collection of all subtextparts contained in the main text of the document.
Tables Gets a collection of all tables contained in the main text of the document.
TablesOfContents Gets a collection of all tables of contents 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.
TrackedChanges Gets a collection of all changes made in the main text of the document.