Javascript: ListFormat.getTextAfterNumber Method
Description
Gets the text that is displayed behind the number in a numbered list.
Syntax
<void> ListFormat.getTextAfterNumber(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the text that is displayed behind the number in a numbered list. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ListFormat.getTextAfterNumber in a practical document-editing workflow. It gets the text that is displayed behind the number in a numbered list.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.listFormat.getTextAfterNumber(
function(result) {
console.log("get text after number result:", result);
},
onTxError
);