New Classes, Properties, Methods and Events

In TX Text Control 22.0 the following new classes, properties, methods and events have been added:

Properties

Property Description
TXTextControl.DocumentTarget.ContainsInputPosition Returns true, if the target's position is the same as the current text input position.
TXTextControl.InputPosition.InactiveMarker Shows or hides a marker which indicates the current text input position when the TextControl is inactive and the blinking caret is not visible.
TXTextControl.Page.Footer Gets the footer of the page.
TXTextControl.Page.Header Gets the header of the page.
TXTextControl.SaveSettings.DocumentLevelJavaScriptActions Specifies an array of strings containing Javascript.
TXTextControl.TextField.ContainsInputPosition Returns true, if the Textfield contains the current text input position.
TXTextControl.Web.HeaderFooter.Section Returns the number of the section to which the header or footer belongs.
TXTextControl.Web.HeaderFooter.Type Gets the type of the header or footer.
TXTextControl.Web.IFormattedText.Selection Gets or sets the current selection.
TXTextControl.Web.Selection.Length Returns the number of characters selected.
TXTextControl.Web.Selection.Start Gets the starting point of selected text.
TXTextControl.Web.TextControl.BackColor Specifies or returns the background color of the main text area and the ruler bars.
TXTextControl.Web.TextControl.ContextMenusEnabled Specifies or returns a value indicating if a right click opens a context menu or not.
TXTextControl.Web.TextControl.ControlChars Specifies if control characters are visible or not.
TXTextControl.Web.TextControl.DocumentTargetMarkers Specifies or returns a value indicating if markers for hypertext targets are shown in the editor or not.
TXTextControl.Web.TextControl.EditMode Specifies or returns a value of type Web.EditMode indicating whether the document's text is read-only, can be selected or is editable.
TXTextControl.Web.TextControl.SaveDocumentQuestionDialogEnabled Specifies or returns a value indicating if a confirmation dialog should be shown before discarding unsaved changes.
TXTextControl.Web.TextControl.Selection Gets or sets the current selection in the text part with the input focus.
TXTextControl.Web.TextControl.StatusBarColor Specifies or returns the background color of the status bar.
TXTextControl.Web.TextControl.TableGridLines Specifies or returns a value indicating wether table grid lines are shown in the editor or not.
TXTextControl.Web.TextControl.TextFieldsEditable Gets or sets if text fields are editable or not.
TXTextControl.Web.TextControl.TextFrameMarkerLines Specifies whether text frames that have no border line are shown with marker lines.
TXTextControl.Web.TextControl.TextParts Gets a collection of all text parts the current document contains.
TXTextControl.Web.TextControl.WebSocketHandlerPath Specifies the path to the WebSocket handler (TXWebSocketHandler.ashx).
TXTextControl.Web.TextPart.Selection Gets or sets the current selection in a text part.

Methods

Method Description
TXTextControl.InputPosition.ScrollTo Scrolls the contents of a Text Control so that the current input position becomes visible.
TXTextControl.Web.Selection.Load Exchanges the currently selected text with text in a certain format.
TXTextControl.Web.Selection.Save Saves the selected text of a document with the specified format.
TXTextControl.Web.TextPartCollection.Activate Sets the input focus to the specified text part.

Classes

Class Description
TXTextControl.Web.HeaderFooter An instance of the Web.HeaderFooter class represents a header or footer in a Text Control document.
TXTextControl.Web.IFormattedText The Web.IFormattedText interface contains properties common to all text parts in a TX Text Control document.
TXTextControl.Web.MainText The Web.MainText class represents the main text of a TX Text Control document.
TXTextControl.Web.Selection The Web.Selection class describes and handles the position and length of a text selection.
TXTextControl.Web.TextFrame An instance of the Web.TextFrame class represents a text frame in a Text Control document.
TXTextControl.Web.TextPart The Web.TextPart class implements the Web.IFormattedText interface as well as public properties and internal functionality common to all text parts in a TX Text Control document.
TXTextControl.Web.TextPartCollection An instance of the Web.TextPartCollection class contains all text parts in a TX Text Control document.