DS Server

Javascript: TXTextControl.TextFieldPosition Enumeration

Enumeration|Introduced in 30.0

Description

Specifies special text input positions at the beginning and the end of a text field.

Members

MemberDescription
InsideTextFieldThe specified position is inside the field.
OutsideTextFieldThe specified position is outside the field.
InsideNextTextFieldThe specified position is inside the next field. This member is only possible, if there are two following text fields without any character bewteen the fields. In this case InsideTextField is in the first field, OutsideTextField is between the fields and InsideNextTextField is in the second field.

Examples

The following example uses TXTextControl.TextFieldPosition.InsideTextField (the specified position is inside the field.) in a document-editing workflow.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.setInputPositionByTextPosition(
    -1,
    TXTextControl.TextFieldPosition.InsideTextField,
    function() {
        console.log("set input position by text position completed.");
    },
    onTxError
);

Further Reading

  • Two TextField Tricks with TX Text Control .NET for Windows Forms –
  • InputPosition Inside or Outside a TextField –