Javascript: TXTextControl.PermanentControlChar Enumeration
Description
Defines a control character which is shown permanently on the screen.
Members
| Member | Description |
|---|---|
| Space | Shows the control character of a space. |
| Tab | Shows the control character of a tabstop. |
| ParagraphEnd | Shows the control character for the end of a paragraph. |
| ForcedLineBreak | Shows the control character of a forced line break. |
| ObjectAnchor | Shows the anchor position of an image, text frame, chart, barcode or drawing. |
| ForcedPageBreak | Marks a forced page break. |
| SectionBreak | Marks a section break. |
| Hyphen | Shows the control character of a hyphen. |
| NonBreakingSpace | Shows the control character of a non-breaking space. |
| TableCellEnd | Shows the control character for the end of a table cell. |
| Pagination | Shows a dot in front of the first line of a paragraph with one of the pagination settings 'keep with next', 'page break before' and 'keep lines together'. |
| All | Shows all control characters. |
Examples
The following example uses TXTextControl.PermanentControlChar.Space (shows the control character of a space.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setPermanentControlChars(
TXTextControl.PermanentControlChar.Space,
function() {
console.log("set permanent control chars completed.");
},
onTxError
);