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 : TextPartBase, IFormattedText
Public Class MainText
        Inherits TextPartBase
        Implements IFormattedText

Introduced: 16.0.

Properties

Property Description
Charts Gets a collection of all charts contained in the main text of the document.
TextFrames Gets a collection of all text frames contained in the main text of the document.