DS Server

Javascript: TXTextControl.sections Property

Property

Description

Gets a collection of all sections in the document.

Syntax

<SectionCollection> TXTextControl.sections

Examples

The following example demonstrates TXTextControl.sections in a practical document-editing workflow. It gets a collection of all sections in the document.

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

tXTextControl.sections.getCount(function(count) {
    console.log("sections count:", count);
}, onTxError);

Limitations

Read Only.