What's New in TX Text Control .NET for Windows Forms 10.1
Formatting styles, the input position and the formatted lines and characters of a document became objects of the class library in TX Text Control .NET for Windows Forms 10.1. The TextControl received collections for all of them, and these classes are still the basis of text formatting and text navigation in the current version.
Version 10.1 was released in April 2003 as a free update of the ActiveX and .NET editions, as the blog article TX Text Control 10.1 Released -- FREE UPDATE announced. What's new in version 10.1 is documented as a list of new classes and members only, without a description of features.
Version 10.1 at a Glance
| Area | What is new |
|---|---|
| Formatting styles | Inline styles and paragraph styles with their collections |
| Input position | Page, line, column, text position and location of the input position |
| Lines and characters | The formatted lines and characters of a text, with their positions and bounds |
| Tables | Selecting a table, a row or a cell in code |
Formatting Styles
- Two kinds of styles. An InlineStyle formats single words in a line, and a ParagraphStyle formats whole paragraphs, including their ParagraphFormat and ListFormat. Both derive from FormattingStyle, which holds the character attributes such as FontName, FontSize, Bold and ForeColor.
- Collections. TextControl.InlineStyles and TextControl.ParagraphStyles return an InlineStyleCollection and a ParagraphStyleCollection with the styles of the document; their
Add,GetItemandRemovemethods add, find and remove styles. - Apply a style. FormattingStyle.Apply applies the attributes of a style to the document, and Selection.FormattingStyle gets or sets the style of the selected text. ParagraphStyle.FollowingStyle names the style of the paragraph that follows when a user presses ENTER.
- Inherited attributes. InlineStyle.IsInheritedFromParagraph tells whether attributes of an inline style come from the surrounding paragraph, and InlineStyle.ResetToParagraph resets them to its values.
Stylesheets covers styles in the current version.
Input Position, Lines and Characters
- Input position. TextControl.InputPosition returns an InputPosition object with the Page, Line and Column of the input position, its TextPosition and its geometric Location.
- Lines. TextControl.Lines returns a LineCollection with the lines of the text as Line objects, each with its Number, its first character (Start, one-based), its Length, its Text, its Baseline and its TextBounds. Line.Save saves the text of a line in a format.
- Characters. TextControl.TextChars returns a TextCharCollection with the characters as TextChar objects with their Char, Number and Bounds. GetItem finds the character at a geometric position.
- Headers and footers. HeaderFooter.Lines, HeaderFooter.TextChars and HeaderFooter.Tables give the lines, characters and tables of a header or footer.
Selections and Caret Position shows how to work with the input position today.
Tables
Table.Select, TableRow.Select and TableCell.Select select a table or a part of it, a row or a cell. See Tables and Table Formulas.
Upgrade to Version 10.1
Version 10.1 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 10.1 lists for TX Text Control .NET for Windows Forms. 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
- FormattingStyle
- FormattingStyleCollection
- InlineStyle
- InlineStyleCollection
- InputPosition
- Line
- LineCollection
- ParagraphStyle
- ParagraphStyleCollection
- TextChar
- TextCharCollection
Members by Class
Next Steps
- Version 11.0: the features of the next version.
- Older Versions: all versions from 29.0 back to 10.1.
- What's New: the current versions.