DS Server

Javascript: TXTextControl.ListType Enumeration

Enumeration|Introduced in 26.0

Description

Specifies the type of a list.

Members

MemberDescription
NoneThe text is neither a bulleted nor a numbered list.
BulletedThe list is a bulleted list.
NumberedThe list is a numbered list.
StructuredThe list is a structured list. All numbers of higher levels (lower level numbers) are displayed in front of the list number. The additional text of all levels in front and behind the list numbers is also displayed.

Examples

The following example uses TXTextControl.ListType.Bulleted (the list is a bulleted list.) in a document-editing workflow.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.listFormat.setType(
    TXTextControl.ListType.Bulleted,
    function() {
        console.log("set type completed.");
    },
    onTxError
);

Further Reading

  • Grouping Undo Steps with TX Text Control –
  • Automatic Numbered Lists Using TX Text Control .NET for Windows Forms –