# FootnoteCollection.Add Method

> 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.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 32.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > FootnoteCollection.Add Method
- **720 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/add-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/add-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/add-method/llms-full.txt

---

### Description

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.

### Syntax

```csharp
public bool Add(Footnote footnote, bool edit);
```

```vbnet
Public Function Add(footnote As Footnote, edit As Boolean) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| footnote | Specifies the footnote to add. |
| edit | If this parameter is true, the text input position is set in the footnote section at the bottom of the page, so that the footnote's text can be edited. |

### Return Value

The return value is true if the new footnote has successfully been inserted. Otherwise, it is false. Footnotes cannot be inserted in headers, footers and textframes.

### Examples

The following example works with footnotes in the current document by using `FootnoteCollection.Add`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FootnoteCollection footnoteCollection = textControl.Footnotes;

if (!footnoteCollection.Add(new Footnote("Quarterly results"), true))
{
    throw new InvalidOperationException("The item could not be inserted.");
}
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim footnoteCollection As FootnoteCollection = textControl.Footnotes

If Not footnoteCollection.Add(New Footnote("Quarterly results"), True) Then
    Throw New InvalidOperationException("The item could not be inserted.")
End If
```

---

## Nearby

- **Previous:** [FootnoteCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/llms-full.txt)
- **Next:** [FootnoteCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/copyto-method/llms-full.txt)
