Javascript: ParagraphFormat.getTabLeaders Method
Description
Gets an array containing the tab leaders in a paragraph. A tab leader defines how a tab gap is filled.
Syntax
<void> ParagraphFormat.getTabLeaders(<RequestNumbersCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the tab leaders. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.getTabLeaders in a practical document-editing workflow. It gets an array containing the tab leaders in a paragraph. A tab leader defines how a tab gap is filled.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.getTabLeaders(
function(result) {
console.log("get tab leaders result:", result);
},
onTxError
);