Javascript: TXTextControl.ListFormatCharacter Enumeration
Description
Specifies the list format character.
Members
| Member | Description |
|---|---|
| None | The text of the list immediately follows the bullet or number character. |
| Tab | The text of the list follows the bullet or number character at the next tab position. |
| Space | The text of the list follows the bullet or number character separated through a space character. |
Examples
The following example uses TXTextControl.ListFormatCharacter.Tab (the text of the list follows the bullet or number character at the next tab position.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.listFormat.setFormatCharacter(
TXTextControl.ListFormatCharacter.Tab,
function() {
console.log("set format character completed.");
},
onTxError
);