TX Text Control .NET Server

Javascript: SectionFormat.getRestartPageNumbering Method

Method|Introduced in 26.0

Description

Gets a value indicating whether page numbering is restarted at the section's beginning.

Syntax

<void> SectionFormat.getRestartPageNumbering(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives a value indicating whether page numbering is restarted at the section's beginning.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates SectionFormat.getRestartPageNumbering in a practical document-editing workflow. It gets a value indicating whether page numbering is restarted at the section's beginning.

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

function inspectRestartPageNumbering(sectionFormat) {
    sectionFormat.getRestartPageNumbering(
        function(result) {
            if (result) {
                console.log("get restart page numbering is available.");
            } else {
                console.warn("get restart page numbering is not available in the current document state.");
            }
        },
        onTxError
    );
}