TX Text Control .NET Server

TextFieldInfo Object

Object|Introduced in 23.0

Description

The type of the text field object in TextFieldEventArgs or in other properties / methods returning static field information (or arrays thereof).

Syntax

{
   bounds: <Rectangle>,
   containsInputPosition: <boolean>,
   deleteable: <boolean>,
   doubledInputPosition: <boolean>,
   editable: <boolean>,
   formattingBounds: <Rectangle>,
   id: <number>,
   isSpellCheckingEnabled: <boolean>,
   length: <number>,
   name: <string>,
   showActivated: <boolean>,
   start: <number>,
   text: <string>,
   type: <string>
}

Examples

The following example demonstrates TextFieldInfo in a practical document-editing workflow. The type of the text field object in TextFieldEventArgs or in other properties / methods returning static field information (or arrays thereof).

function inspectTextFieldInfo(textFieldInfo) {
    console.log("bounds:", textFieldInfo.bounds);
    console.log("contains input position:", textFieldInfo.containsInputPosition);
    console.log("deleteable:", textFieldInfo.deleteable);
    console.log("doubled input position:", textFieldInfo.doubledInputPosition);
}

Members

Properties

PropertyDescription
boundsThe bounding rectangle of a text field.
containsInputPositionReturns true if the Textfield contains the current text input position.
deleteableSpecifies whether a text field can be deleted by the end-user while a TX Text Control document is being edited.
doubledInputPositionSpecifies whether a text field has a doubled input position in front of its first character and behind its last character.
editableSpecifies whether the text of a text field can be changed by the end-user while a TX Text Control document is being edited.
formattingBoundsThe formatting rectangle of a text field.
idThe identifier of the text field.
isSpellCheckingEnabledSpecifies whether a text field's text is checked on misspelled words.
lengthThe number of characters in the text field.
nameThe text field's name.
showActivatedSpecifies whether a text field toggles its background to gray, if the current input position is in the field.
startThe 1-based first character position of the text field.
textThe text field's text content.
typeThe field type ("APPLICATIONFIELD" or "TEXTFIELD").