Javascript: TXTextControl.TabLeader Enumeration
Description
Defines how a tab gap is filled.
Members
| Member | Description |
|---|---|
| None | The tab gap is not filled. |
| Period | The tab gap is filled with periods. |
| Dot | The tab gap is filled with dots. |
| Dash | The tab gap is filled with dashes. |
| Underline | The tab gap is underlined. |
Examples
The following example uses TXTextControl.TabLeader.Period (the tab gap is filled with periods.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.setTabLeaders(
TXTextControl.TabLeader.Period,
function() {
console.log("set tab leaders completed.");
},
onTxError
);