# FootnoteCollection Class

> An instance of the FootnoteCollection class contains all footnotes in a Text Control document represented through objects of the type Footnote. An instance of this class can be obtained with the TextControl.Footnotes, WPF.TextControl.Footnotes and ServerTextControl.Footnotes property. The FootnoteCollection class implements the IEnumerable and the ICollection interfaces.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 32.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FootnoteCollection Class
- **1173 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/llms-full.txt

---

### Description

An instance of the FootnoteCollection class contains all footnotes in a Text Control document represented through objects of the type [Footnote](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnote/llms-full.txt). An instance of this class can be obtained with the [TextControl.Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/footnotes-property/llms-full.txt), [WPF.TextControl.Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/footnotes-property/llms-full.txt) and [ServerTextControl.Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/footnotes-property/llms-full.txt) property. The FootnoteCollection class implements the IEnumerable and the ICollection interfaces.

### Syntax

```csharp
public sealed class FootnoteCollection : ICollection, IEnumerable
```

```vbnet
Public NotInheritable Class FootnoteCollection
    Implements ICollection, IEnumerable
```

### Examples

The following example works with footnotes in the current document.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FootnoteCollection footnoteCollection = textControl.Footnotes;
footnoteCollection.Add(new Footnote("Source: FY 2026 annual report") { ID = 100 }, false);
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim footnoteCollection As FootnoteCollection = textControl.Footnotes
footnoteCollection.Add(New Footnote("Source: FY 2026 annual report") With { .ID = 100 }, False)
```

---

## In This Section

- [FootnoteCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/add-method/llms-full.txt): Adds a new footnote to the document at the current text input position. A footnote consists of a reference mark in the document and the footnote itself appearing at the bottom of the page.
- [FootnoteCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/copyto-method/llms-full.txt): Copies the elements of the collection to an array, starting at a particular index.
- [FootnoteCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/count-property/llms-full.txt): Gets the number of elements contained in the collection.
- [FootnoteCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/getenumerator-method/llms-full.txt): Returns an enumerator that can be used to iterate through the collection.
- [FootnoteCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/getitem-method/llms-full.txt): Gets a particular footnote from the collection.
- [FootnoteCollection.HighlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/highlightmode-property/llms-full.txt): Gets or sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
- [FootnoteCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/item-property/llms-full.txt): Gets the footnote with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the FootnoteCollection class.
- [FootnoteCollection.NumberFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/numberformat-property/llms-full.txt): Gets or sets the footnotes' number format. The property's value is a member of the NumberFormat enumeration.
- [FootnoteCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/remove-method/llms-full.txt): Removes a footnote from a Text Control document.
- [FootnoteCollection.StartNumber Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/startnumber-property/llms-full.txt): Gets or sets the number for the first footnote.

---

## Nearby

- **Previous:** [Footnote.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnote/text-property/llms-full.txt)
- **Next:** [FootnoteCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/footnotecollection/add-method/llms-full.txt)
