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