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