TX Text Control .NET Server

RequestSectionCallback Function

Function

Description

Callback function for requests expecting a Section object.

Syntax

function(<Section> section)

Examples

The following example demonstrates RequestSectionCallback in a practical document-editing workflow. Callback function for requests expecting a Section object.

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

function requestSectionCallback(section) {
    console.log("section:", section);
}

TXTextControl.sections.getItem(requestSectionCallback, 1, onTxError);