TX Text Control .NET Server

Javascript: PageBorder.setSurroundFooter Method

Method|Introduced in 26.0

Description

Sets the whether the page border surrounds the section's footer.

Syntax

<void> PageBorder.setSurroundFooter(<boolean> surroundFooter, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
surroundFooter

Specifies whether the page border surrounds the section's footer.

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates PageBorder.setSurroundFooter in a practical document-editing workflow. It sets the whether the page border surrounds the section's footer.

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

function configureSurroundFooter(pageBorder) {
    pageBorder.setSurroundFooter(
        true,
        function() {
            console.log("set surround footer completed.");
        },
        onTxError
    );
}