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.
TXTextControl.CommentsDialog The CommentsDialog class implements a dialog box that shows all comments of the document.
TXTextControl.GotoDialog The GotoDialog class implements a Windows Forms dialog box which can be used to move the current input position to a certain page, section, line, table or bookmark.
TXTextControl.TrackedChangesDialog The TrackedChangesDialog class implements a dialog box that shows all tracked changes of the document.

Constructors

Constructor Description
TXTextControl.InputPosition Creates a new instance of the InputPosition class.
TXTextControl.Selection Creates a new instance of the Selection class.
TXTextControl.CommentsDialog Creates a CommentsDialog object for the specified Windows Forms TextControl.
TXTextControl.GotoDialog Creates a GotoDialog object for the specified Windows Forms TextControl.
TXTextControl.TrackedChangesDialog Creates a TrackedChangesDialog object for the specified Windows Forms TextControl.

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.
TXTextControl.CommentsDialog.DialogItem Each DialogItem represents an item in a CommentsDialog dialog box.
TXTextControl.GotoDialog.DialogItem Each DialogItem represents an item in a GotoDialog dialog box.
TXTextControl.TrackedChangesDialog.DialogItem Each DialogItem represents an item in a TrackedChangesDialog dialog box.

Events

Event Description
TXTextControl.TextControl.InputPositionChanged Occurs when the text input position has been changed.

Methods

Method Description
TXTextControl.InputPosition.ScrollTo Scrolls the contents of a Text Control so that the current input position becomes visible.
TXTextControl.Selection.ChangeCapitalization Changes the capitalization of all selected characters depending on the settings parameter.
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.RemoveFormatting Resets all character based formatting attributes of the selected text to its default values.
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.
TXTextControl.CommentsDialog.FindItem Finds a control that has the provided identifier name.
TXTextControl.GotoDialog.FindItem Finds a control that has the provided identifier name.
TXTextControl.TextControl.OnInputPositionChanged Raises the InputPositionChanged event.
TXTextControl.TextControl.Select Selects text within the Text Control.
TXTextControl.TextControl.SelectAll Selects all text in the Text Control.
TXTextControl.TextControl.SelectWord Selects the word at the current text input position.
TXTextControl.TrackedChangesDialog.FindItem Finds a control that has the provided identifier name.

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.AutoBaseline Gets or sets values specifying wheather the selected text is automatically sub- or superscripted.
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.Capitals Gets or sets values specifying wheather the lowercase letters of the selected text are displayed with capital letters.
TXTextControl.Selection.CharacterScaling Gets or sets a character scaling, in percent of the average character width, of the selected text.
TXTextControl.Selection.CharacterSpacing Gets or sets a character spacing value, in twips, 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.
TXTextControl.TextControl.CaretWidth Gets or sets the width of the caret in pixels.
TXTextControl.TextControl.HideSelection Gets or sets a value indicating whether the selected text in the Text Control remains highlighted when the control loses focus.
TXTextControl.TextControl.InputPosition Gets or sets the current text input position.
TXTextControl.TextControl.InsertionMode Specifies whether text is inserted or overwrites existing text.
TXTextControl.TextControl.Selection Gets or sets the current selection in the text part with the input focus.
TXTextControl.TextControl.SelectionViewMode Specifies whether text selections are displayed with a transparent bitmap or through inverting the text.
TXTextControl.TextControl.SelectObjects Gets or sets a value controlling the selection of objects which are inserted behind the text.