New Features

Text Control 26.0 provides the following new features:

Feature Description
Tracked Changes To see who has been making text changes to a document a TextControl offers the track changes feature. It can be turned on or off with the new IsTrackChangesEnabled property. When the feature is turned on, a TextControl marks up new text changes made to the document. When it is turned off, marking up new changes are stopped. Any changes that were already tracked remain marked up in the document until they are removed. All tracked changes in a document can be enumerated with the TrackedChangeNext method. The TrackedChangeStart and TrackedChangeEnd properties inform about the position in the text and the TrackedChangeKind property determines the kind of change, deleted or inserted text. The only way to remove tracked changes in a document is to accept or to reject them with the TrackedChangeDelete method. Each tracked change has a change time (TrackedChangeTime property) and is related to a user (TrackedChangeUserName property). When a new change is tracked, the current user is associated with the change. The current user is the first in the list of users set with the UserNames property. When the list of users is empty, the name is set to an empty string which is interpreted as an unknown user. Events occur, when a tracked change is created (TrackedChangeCreated), deleted (TrackedChangeDeleted) or changed (TrackedChangeChanged). A tracked change is highlighted on the screen with a color depending on the user, the default color for the current user is red. Newly inserted text is highlighted through colored text, deleted text is highlighted through colored and strikethrough text. Some complex text operations, for example deleting a table column cannot be tracked. In these cases a CannotTrackChange event occur and the end-user can decide whether the change is made. Tracked changes are saved and can be reloaded with the TextControl text format (.tx), the Rich Text Format (.rtf) and the Microsoft Word formats (.doc, .docx).
SpreadsheetML Format In addition to WordprocessingML TX Text Control supports the SpreadsheetML part of the Microsoft Office Open XML format. This format is a ZIP compressed XML format for spreadsheet processing and is used as standard format of Microsoft Excel. A TextControl can load .xlsx files, the Format parameter of the Load method accepts a new value to load this format. The import of this file type is limited to the contents of the first worksheet in the document. Formulas containing cell references into other worksheets or files are not supported.
Formulas in tables TX Text Control supports calculations in a table by using formulas. A formula is a property of a table cell and can be either loaded with a SpreadsheetML document or can be inserted using the TableCellFormula and TableCellNumberFormat properties. Formulas can reference other table cells and the text content of a formula cell is automatically updated when the content of an input cell changes. Automatic updating can be switched off with the IsFormulaCalculationEnabled property. Cell references can be specified either with the A1 or with the R1C1 notation. The A1 notation specifies a table cell with a column letter and a row number, for example B3 refers to the table cell in the third row and the second column. The R1C1 notation addresses a table cell with a row number and a column number, for example R2C3 refers to the same table cell in the third row and the second column. Relative addresses can be expressed with square brackets, for example R[-2]C[-3]. The numbers inside the square brackets show how many rows or columns the cell is relative to itself. Negative row numbers mean that the referenced cell is above the cell containing the formula. Negative column numbers mean that the referenced cell is to the left of the cell containing the formula. To switch the reference style the FormulaReferenceStyle property can be used. The TableAttrDialog has been extended with a third tab which can also be used to specify a formula and a number format for one or more table cells. For more information about formulas see Using Formulas in Table Cells and for more information how to format the formula result see Formatting Text by using Number Formats. A formula cell can be the input cell of a further formula cell. Cell references pointing to other tables or document files are not supported. Number formats are restricted to positive number formats. The Supported Formula Functions section lists all supported functions that can be used in formulas.
Ruler Bars The new TXRulerBar.FormulaMode property support formulas in tables through showing cell references. Depending on the TXTextControl.FormulaReferenceStyle property table cells are addressed either with the A1 or with the R1C1 notation. Depending on the mode cell references are shown for all cells or only for cells which contain a formula.
Keyboard Interface Pressing the TAB key in the last cell of a table inserts now a new table row at the end of the table. Pressing the ENTER key at the first input position of a document when the document begins with a table inserts now an emty line in front of the table.