DS Server

Javascript: TXTextControl.headersAndFooters Property

Property|Introduced in 28.0

Description

Gets a collection of all headers and footers in the document.

Syntax

<HeaderFooterCollection> TXTextControl.headersAndFooters

Examples

The following example demonstrates TXTextControl.headersAndFooters in a practical document-editing workflow. It gets a collection of all headers and footers in the document.

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

tXTextControl.headersAndFooters.getCount(function(count) {
    console.log("headers and footers count:", count);
}, onTxError);