Javascript: TXTextControl.TabType Enumeration
Description
Determines the tabulator type.
Members
| Member | Description |
|---|---|
| LeftTab | The tab position is at the left side of the text. |
| RightTab | The tab position is at the right side of the text. |
| CenterTab | The text is centered to the tab position. |
| DecimalTab | The decimal sign is aligned at the tab position. |
| RightBorderTab | The tab is positioned right most and the text is diplayed at the left of this position. The tab position set with the TabPositions property is ignored. Only one tab of this kind is possible in a paragraph. |
Examples
The following example uses TXTextControl.TabType.LeftTab (the tab position is at the left side of the text.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.setTabTypes(
TXTextControl.TabType.LeftTab,
function() {
console.log("set tab types completed.");
},
onTxError
);