Javascript: TXTextControl.headersAndFooters Property
Description
Gets a collection of all headers and footers in the document.
Syntax
<HeaderFooterCollection> TXTextControl.headersAndFootersExamples
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);