Javascript: ParagraphFormat.setTabPositions Method
Description
Sets an array containing the absolute tab stop positions, in twips, in a paragraph.
Syntax
<void> ParagraphFormat.setTabPositions(<number[]> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| value | The absolute tab stop positions, in twips, in a paragraph. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.setTabPositions in a practical document-editing workflow. It sets an array containing the absolute tab stop positions, in twips, in a paragraph.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.setTabPositions(
[],
function() {
console.log("set tab positions completed.");
},
onTxError
);