TX Text Control .NET Server

Javascript: Paragraph.listFormat Property

Property|Introduced in 28.0

Description

The paragraph's bulleted or numbered list and/or its formatting attributes.

Syntax

<ListFormat> Paragraph.listFormat

Examples

The following example demonstrates Paragraph.listFormat in a practical document-editing workflow. The paragraph's bulleted or numbered list and/or its formatting attributes.

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

TXTextControl.textParts.getMainText(function(mainText) {
    const paragraphs = mainText.paragraphs;
    paragraphs.getItem(function(paragraph) {
        if (!paragraph) {
            console.warn("No paragraph is available at the current input position.");
            return;
        }
    
        const listFormat = paragraph.listFormat;
        console.log("list format:", listFormat);
    }, onTxError);
}, onTxError);

Limitations

Read Only.