Text Selections and Character Input

Classes

Class Description
TXTextControl.InputPosition An instance of the InputPosition class represents the current text input position of a TXTextControl document.
TXTextControl.Selection The Selection class describes and handles the attributes of a text selection.

Constructors

Constructor Description
TXTextControl.InputPosition Creates a new instance of the InputPosition class.
TXTextControl.Selection Creates a new instance of the Selection class.

Enumerations

Enumeration Description
TXTextControl.InputPosition.ScrollPosition Determines a position to where the input position is scrolled.
TXTextControl.Selection.Attribute Determines a certain attribute.
TXTextControl.Selection.DialogResult Specifies identifiers to indicate the return value of a dialog box.

Methods

Method Description
TXTextControl.InputPosition.ScrollTo Scrolls the contents of a Text Control so that the current input position becomes visible.
TXTextControl.Selection.ChangeDirection Changes the writing direction of all selected paragraphs.
TXTextControl.Selection.DecreaseIndent Decreases the left indent of all paragraphs contained in the current text selection.
TXTextControl.Selection.GrowFont Increases the font size of each font contained in the current text selection.
TXTextControl.Selection.IncreaseIndent Increases the left indent of all paragraphs contained in the current text selection.
TXTextControl.Selection.IsCommonValueSelected Informs about whether a certain attribute has the same value for the complete selection.
TXTextControl.Selection.Load Exchanges the currently selected text with text in a certain format.
TXTextControl.Selection.RemoveInlineStyles Removes all character based styles of the selected text so that all attributes are reset to the attributes of the paragraph style.
TXTextControl.Selection.Save Saves the selected text of a document with the specified format.
TXTextControl.Selection.ShrinkFont Decreases the font size of each font contained in the current text selection.
TXTextControl.ServerTextControl.Select Selects text within the control.
TXTextControl.ServerTextControl.SelectAll Selects all text in the control.
TXTextControl.ServerTextControl.SelectWord Selects the word at the current text input position.

Properties

Property Description
TXTextControl.InputPosition.CaretSize Gets the size of the caret, in pixels, at the current text input position.
TXTextControl.InputPosition.Column Gets the column number of 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.InputPosition.Line Gets the line number of the current text input position.
TXTextControl.InputPosition.Location Gets the geometric location of the current text input position.
TXTextControl.InputPosition.Page Gets the page number of the current text input position.
TXTextControl.InputPosition.PageInSection Gets the page number in the section containing the current text input position.
TXTextControl.InputPosition.Section Gets the section number of the current text input position.
TXTextControl.InputPosition.TextPosition Gets the text position of the current text input position.
TXTextControl.Selection.Baseline Gets or sets the baseline alignment, in twips, of the selected text.
TXTextControl.Selection.Bold Gets or sets the bold attribute of the selected text.
TXTextControl.Selection.Culture Gets or sets the culture of the selected text.
TXTextControl.Selection.FontName Gets or sets the font of the selected text.
TXTextControl.Selection.FontSize Gets or sets the font's size, in twips, of the selected text.
TXTextControl.Selection.ForeColor Returns or sets the color used to display the selected text.
TXTextControl.Selection.FormattingStyle Gets or sets the formatting style of the selected text.
TXTextControl.Selection.Italic Gets or sets the italic attribute of the selected text.
TXTextControl.Selection.Length Returns or sets the number of characters selected.
TXTextControl.Selection.ListFormat Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text.
TXTextControl.Selection.ParagraphFormat Gets or sets the formatting attributes of the selected paragraphs.
TXTextControl.Selection.SectionFormat Gets or sets page settings such as margins, size and orientation for the selected text.
TXTextControl.Selection.Start Gets or sets the starting point of selected text.
TXTextControl.Selection.Strikeout Gets or sets the strikeout attribute of the selected text.
TXTextControl.Selection.Text Gets or sets a string containing the currently selected text.
TXTextControl.Selection.TextBackColor Gets or sets the background color for selected text.
TXTextControl.Selection.Underline Gets or sets underlining styles for the selected text.
TXTextControl.ServerTextControl.InputPosition Gets or sets the current text input position.
TXTextControl.ServerTextControl.Selection Gets or sets the current selection in the main text of the document.