What's New in TX Text Control 11.0
Tables inside tables arrived with TX Text Control 11.0, together with a method that splits a table in two. The version also reduced the size of documents through image export settings and protected PDF documents with passwords.
Version 11.0 was released in April 2004 as TX Text Control .NET for Windows Forms 11.0, as the press release Press Release: TX Text Control .NET for Windows Forms 11.0 is Released announced. ServerTextControl didn't exist yet: it came with Version 12.0. The classes below are part of the class library that ServerTextControl uses today. Features of the Windows Forms control, such as the multi-level undo buffer, the resource kit for localization, the ruler bar design, controls that grow and shrink with their text and transparent backgrounds, aren't listed here.
Version 11.0 at a Glance
| Area | What is new |
|---|---|
| Tables | Nested tables at any level, splitting a table |
| Images | Resolution and compression quality of exported images |
| User and master passwords, access permissions | |
| Styles | New styles based on existing ones |
Tables
- Nested tables. A table can contain other tables, without a limit on the nesting level, and all text filters load and save them. The
Tablescollection of a text contains its top-level and its nested tables in the order of the text flow. Table.NestedTables returns the tables inside a table, Table.NestedLevel its level, which is 1 for a top-level table, and Table.OuterTable and Table.OuterMostTable the tables around it. - Split a table. Table.Split splits a table above or below the row with the input position; Table.CanSplit tells whether that is possible. Both parts keep the identifier of the original table, and a
TableCreatedevent occurs for the bottom part, so that it can get an identifier of its own. Splitting above the first row or below the last row inserts an empty line, which is how text is typed above or below a nested table that starts or ends at the edge of its cell. - Table collections. TableBaseCollection is the base class of the table collections.
Tables shows how to work with tables today.
Images and PDF
- Image export. By default, images are saved with their own resolution and a default compression. SaveSettings.ImageCompressionQuality, from 1 for the lowest to 100 for the highest quality, and SaveSettings.ImageMaxResolution, in dots per inch, change this for all images of a document. Image.ExportCompressionQuality and Image.ExportMaxResolution override the values for one image.
- PDF passwords. UserPassword sets the password that opens the document, and MasterPassword the password that protects its access permissions, which SaveSettings.DocumentAccessPermissions sets. See PDF Creation.
Upgrade to Version 11.0
- Style constructors. InlineStyle and ParagraphStyle have an additional constructor that creates a new style from an existing one and copies all its attributes.
New Classes, Properties, Methods and Events
The classes and members below are the ones that the What's New documentation of version 11.0 lists for TX Text Control .NET Server. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today.
New Classes
Members by Class
Next Steps
- Version 12.0: the features of the next version.
- Version 10.1: formatting styles, the input position, lines and characters.
- Tables: create and format tables.