What's New in TX Text Control .NET for WPF 21.0
Content controls of MS Word documents became programmable in TX Text Control 21.0 through a set of field adapters. The WPF TextControl also learned to detect the language of its text with TX Spell .NET, and its find and replace dialog boxes began to search the whole document.
Version 21.0 was released in September 2014 as TX Text Control X11, together with TX Spell .NET 5.0 and TX Barcode .NET 4.0, as the blog article TX Text Control X11 Released: Cross-browser Template Editing announced. The HTML5 Web Editor and the ServerVisualization namespace that the same version introduced belong to TX Text Control .NET Server and aren't listed here.
Version 21.0 at a Glance
| Area | What is new |
|---|---|
| Proofing | Automatic language detection with TX Spell .NET 5.0 |
| Find and replace | Searching text frames, headers and footers, whole words only |
| Content controls | Field adapters for the content controls of MS Word |
| Tables | Selecting a table range between two cells |
| Localization | The Find, Replace and Color dialog boxes in the resource kit |
| Version information | GetVersionInfo and the VersionInfo class |
Language Detection
With TX Spell .NET 5.0 connected, setting WPF.TextControl.IsLanguageDetectionEnabled to true detects the language of all text that has the neutral language. ServerTextControl.IsLanguageDetectionEnabled does the same without a user interface. See Spell Checking and Hyphenation.
Find and Replace
- The whole document. The built-in find and replace dialog boxes continue the search in text frames and in headers and footers instead of stopping at the end of the main text.
- Whole words. The FindOptions value
MatchWholeWordfinds only occurrences of the search text that are whole words. - Localization. The Find, Replace and Color dialog boxes are part of the resource kit and can be translated. See Localization and Resource Kit.
Content Control Adapters
Content controls are the controls that MS Word adds to documents and templates to automate them. The DocumentServer.Fields namespace received an adapter class for each kind, so that you read and change them without editing the parameters of the underlying ApplicationField:
- Text. RichTextContentControl and PlainTextContentControl.
- Choices. CheckBoxContentControl, ComboBoxContentControl and DropDownListContentControl. The feature list of the version calls the last one "DropDownContentControl"; the class is named
DropDownListContentControl. - Dates. DateContentControl, with the calendar, the date format and the language of the date.
- Common properties. The base class ContentControlFieldAdapter provides Id, Tag, Title, Placeholder, ContentEditable, ContentDeletable and Type.
Fields and Subtext Parts describes the fields of MS Word documents and their adapter classes today.
Tables and Version Information
- Table ranges. A new overload of Table.Select selects the part of a table between two cells. See Tables and Calculations.
- Version information. WPF.TextControl.GetVersionInfo and ServerTextControl.GetVersionInfo return a VersionInfo object with the Major and Minor version, the ServicePack number (0 for the original release) and the product level. The reference documents the product level as the property ProductLevel, but in the assemblies the property is named
Level, andProductLevelis the type of its value.
Upgrade to Version 21.0
Version 21.0 has no update notes.
New Classes, Properties, Methods and Events
The classes and members below are the ones that the What's New documentation of version 21.0 lists for TX Text Control .NET for WPF. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today. The version's own list names the ListItems property of DropDownListContentControl as a property of DateContentControl; it is listed here with the class it belongs to.
New Classes
- DocumentServer.Fields.CheckBoxContentControl
- DocumentServer.Fields.ComboBoxContentControl
- DocumentServer.Fields.ContentControlFieldAdapter
- DocumentServer.Fields.DateContentControl
- DocumentServer.Fields.DropDownListContentControl
- DocumentServer.Fields.PlainTextContentControl
- DocumentServer.Fields.RichTextContentControl
- VersionInfo
Members by Class
Next Steps
- Version 22.0: the features of the next version.
- Version 20.0: right-to-left text, hyphenation and object merging.
- Fields and Subtext Parts: fields and their adapter classes in the current version.