DS Server

FootnoteCollection Object

Object|Introduced in 32.0

Description

Contains all footnotes in a Text Control document.

Syntax

FootnoteCollection

Examples

The following example demonstrates FootnoteCollection in a practical document-editing workflow. It contains all footnotes in a Text Control document.

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

TXTextControl.footnotes.getDefaultFootnoteHighlightColor(
    function(result) {
        console.log("get default footnote highlight color result:", result);
    },
    onTxError
);

Members

Methods

MethodDescription
addAdds a new footnote with the given text to the document at the current input position. A footnote consists of a reference mark in the document and the footnote itself appearing at the bottom of the page.
elementAtReturns the element at a specified index in the collection. (Inherited from Collection.)
forEachExecutes a callback function for each element. (Inherited from Collection.)
getCountGets the number of elements contained in the collection. (Inherited from Collection.)
getDefaultFootnoteHighlightColorGets the default highlight color for the reference mark and the footnote mark.
getHighlightModeGets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
getNumberFormatGets the footnotes' number format.
getStartNumberGets the number for the first footnote.
removeRemoves a footnote from a Text Control document.
setHighlightModeSets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
setNumberFormatSets the footnotes' number format.
setStartNumberSets the number for the first footnote.