DS Server

Javascript: TXTextControl.PermanentControlChar Enumeration

Enumeration

Description

Defines a control character which is shown permanently on the screen.

Members

MemberDescription
SpaceShows the control character of a space.
TabShows the control character of a tabstop.
ParagraphEndShows the control character for the end of a paragraph.
ForcedLineBreakShows the control character of a forced line break.
ObjectAnchorShows the anchor position of an image, text frame, chart, barcode or drawing.
ForcedPageBreakMarks a forced page break.
SectionBreakMarks a section break.
HyphenShows the control character of a hyphen.
NonBreakingSpaceShows the control character of a non-breaking space.
TableCellEndShows the control character for the end of a table cell.
PaginationShows 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'.
AllShows 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
);