New Features

TX Text Control 32.0 provides the following new features:

Footnotes

Footnotes can now be used in a document to explain, comment on, or provide references to something. A footnote consists of a reference mark in the document and the footnote itself appearing at the bottom of the page. The footnote has a footnote mark with the same number as the reference mark. To insert a new note, the FootnoteCollection.Add method can be used. It inserts the reference mark at the current text input position and the footnote mark at the bottom of the page. Depending on the edit parameter, the text input position is set behind the footnote mark, so that the end-user can insert the footnote's text. The text can be formatted with all possible formatting attributes, even tables and/or images can be added. All footnotes are numbered from the beginning to the end of the document with a certain starting number and a number format. Possible number formats are Arabic and Roman numbers and small or capital letters. To alter the starting number and the number format the FootnoteCollection.StartNumber and FootnoteCollection.NumberFormat properties can be used. When a new footnote is inserted in front of existing footnotes the numbers of all following notes are automatically increased and updated. To get an overview, the reference mark and the footnote mark can be highlighted using the FootnoteCollection.HighlightMode property. Events occur, when a footnote is created (FootnoteCreated) or deleted (FootnoteDeleted), if the reference mark of a footnote is entered (FootnoteReferenceMarkEntered) or left (FootnoteReferenceMarkLeft) and when the footnote text gets (FootnoteSectionActivated) or has lost (FootnoteSectionDeactivated) the text input postion. Footnotes can be saved in the TX TextControl text format (.tx), the Rich Text Format (.rtf) and the Microsoft Word formats (.doc, .docx).

Scalable Vector Graphics (.SVG) Format

The Page and the ServerVisualization.View classes provide a new GetImage method that returns a string representing the page's contents in Scalable Vector Graphics (.SVG) format. All characters are contained either with outline curve data that are cubic Bézier splines or as text and font information. Curve and line data coordinates are in twentieth of a point (twips). Images of all pixel-formats are embedded in Portable Network Graphics (PNG) format. A maximum image resolution can be specified for these images.

Headers and Footers

The new HeaderFooter.AddUndoUnit method has been implemented to add the current state of a header or footer to the undo stack. Programmatic changes performed with a header's or footer's properties and methods are not automatically added to a TextControl's undo stack. Calling this method is not necessary, when the text is edited and/or formatting attributes are changed.

HTML5 Document Editor

The HTML5 Document Editor has a new render mode. In addition to bitmap-based rendering, the main text editor area can now also be rendered as SVG-based vector data. This accelerates the graphical display in certain situations, such as slow internet connections or high ping times. The preferred render mode can either be selected explicitly or an automatic estimation algorithm can select the used render mode automatically depending on the current network connection conditions and screen resolution. (see TXTextControl.setRenderMode(), TXTextControl.getRenderMode() and TXTextControl.ComponentRenderMode). The built-in HTML based dialogs can now be summoned via the TXTextControl.showHtmlDialog() method. For a list of available dialogs, see the HtmlDialogBoxKind enumeration. The MVC NuGet package for the HTML5 Document Editor which is installed locally when installing TX Text Control.NET Server 32.0 now also offers the possibility to create web applications only using HTML, CSS and pure JavaScript. For more information about how to achieve this visit our website at www.textcontrol.com.

Web Accessibility

The ribbon bar of the HTML5 Document Editor is now more accessible for screen readers. This is achieved by adding ARIA attributes and roles and in some cases alt and title attributes to the HTML elements that make up the ribbon bar.