# FootnoteCollection Object

> Contains all footnotes in a Text Control document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 32.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > FootnoteCollection Object
- **918 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/llms-full.txt

---

### Description

Contains all [footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnote/llms-full.txt) in a Text Control document.

### Syntax

```javascript
FootnoteCollection
```

### Examples

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

```javascript
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
);
```

---

## In This Section

- [Javascript: FootnoteCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/add-method/llms-full.txt): Adds 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.
- [Javascript: FootnoteCollection.getDefaultFootnoteHighlightColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/getdefaultfootnotehighlightcolor-method/llms-full.txt): Gets the default highlight color for the reference mark and the footnote mark.
- [Javascript: FootnoteCollection.getHighlightMode Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/gethighlightmode-method/llms-full.txt): Gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
- [Javascript: FootnoteCollection.getNumberFormat Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/getnumberformat-method/llms-full.txt): Gets the footnotes' number format.
- [Javascript: FootnoteCollection.getStartNumber Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/getstartnumber-method/llms-full.txt): Gets the number for the first footnote.
- [Javascript: FootnoteCollection.remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/remove-method/llms-full.txt): Removes a footnote from a Text Control document.
- [Javascript: FootnoteCollection.setHighlightMode Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/sethighlightmode-method/llms-full.txt): Sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
- [Javascript: FootnoteCollection.setNumberFormat Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/setnumberformat-method/llms-full.txt): Sets the footnotes' number format.
- [Javascript: FootnoteCollection.setStartNumber Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/setstartnumber-method/llms-full.txt): Sets the number for the first footnote.

---

## Nearby

- **Previous:** [Javascript: FootnoteCallbackData.footnote Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecallbackdata/footnote-property/llms-full.txt)
- **Next:** [Javascript: FootnoteCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/add-method/llms-full.txt)
