Javascript: Line.getText Method
Description
Gets the line's text.
Syntax
<void> Line.getText(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the line's text. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates Line.getText in a practical document-editing workflow. It gets the line's text.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectText(line) {
line.getText(
function(result) {
console.log("get text result:", result);
},
onTxError
);
}