TX Text Control .NET Server

Javascript: TXTextControl.ListFormatCharacter Enumeration

Enumeration|Introduced in 28.0

Description

Specifies the list format character.

Members

MemberDescription
NoneThe text of the list immediately follows the bullet or number character.
TabThe text of the list follows the bullet or number character at the next tab position.
SpaceThe 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
);