New Features and Update Notes
TX Text Control 16.0 provides the following new features:
Windows Presentation Framework
TX Text Control now supports the development of WPF applications (.exe) and WPF browser applications (.xbap). Four new controls WPF.TextControl, WPF.ButtonBar, WPF.RulerBar and WPF.StatusBar have been added to the TX Text Control class library. They can be found in the new TXTextControl.WPF namespace. These controls offer the same feature set as the Windows Forms controls.
Text Part Collection
A TX Text Control document consists of the document's main text and additional pieces of text like text frames and headers and footers. To provide easy access to all of these text parts TX Text Control offers the new TextPartCollection class. An instance of the this class contains all text parts in a TX Text Control document. A text part can either be the document's main text, a text frame or a header or footer. A text frame is represented through a TextFrame object, a header or footer through a HeaderFooter object and the document's main text is represented through a MainText object. A TextPartCollection object contains all these objects in a geometric order. The first object in the collection is the main text, followed by all text frames in geometric order. At the end of the collection all headers and footers are contained also geometrically ordered. All objects in a text part collection implement the IFormattedText interface. The collection can be obtained with the TextControl.TextParts, WPF.TextControl.TextParts or ServerTextControl.TextParts property. The collection provides an Activate method to set the current input position to a certain text part and the GetItem method to get the currently activated part.
IFormattedText Interface
The IFormattedText interface contains properties and methods common to all text parts in a TX Text Control document. A TX Text Control document consists of the document's main text and additional pieces of text such as text frames and headers and footers. A single text part has lines, paragraphs, characters and a selection which can be used to assign character and paragraph formatting attributes to a piece of text. Additionally, a text part can contain tables, images, text fields, hypertext links and misspelled words. The following classes implement this interface: TextControl, ServerTextControl, WPF.TextControl, TextFrame, HeaderFooter and MainText.
The MainText Class
The new MainText class represents the main text of a TX Text Control document. 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.
PageMargins Class
The property type of the PageMargins.Left, PageMargins.Top, PageMargins.Right and PageMargins.Bottom properties has been changed from int to double.
TextControl.PageSize Property
The property type has been changed from System.Drawing.Size to PageSize.
ServerTextControl.PageSize Property
The property type has been changed from System.Drawing.Size to PageSize.
Selection.Load Method
The return value of the methods, which open a dialog box has been changed from System.Windows.Forms.DialogResult to Selection.DialogResult.
BrowserTextControl Class
This class has been removed. Each occurence can be replaced with the TextControl class.
BrowserRulerBar Class
This class has been removed. Each occurence can be replaced with the RulerBar class.
BrowserStatusBar Class
This class has been removed. Each occurence can be replaced with the StatusBar class.
TX Text Control Assemblies
The TXTextControl.dll assembly has been divided into TXTextControl.dll and TXTextControl.Windows.Forms.dll.