TX Text Control .NET Server

Javascript: TextChar.getChar Method

Method|Introduced in 28.0

Description

Gets the value of the character.

Syntax

<void> TextChar.getChar(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the value of the character.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TextChar.getChar in a practical document-editing workflow. It gets the value of the character.

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

function inspectChar(textChar) {
    textChar.getChar(
        function(result) {
            console.log("get char result:", result);
        },
        onTxError
    );
}