# FootnoteCollection.GetItem Method

> Gets a particular footnote from the collection.

- **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.GetItem Method
- **1256 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/getitem-method/llms-full.txt

---

### Description

Gets a particular footnote from the collection.

### Syntax

#### GetItem()

Gets the footnote at the current text input position. If there is no footnote, null is returned.

```csharp
public Footnote GetItem();
```

```vbnet
Public Function GetItem() As Footnote
```

#### GetItem(bool)

Gets the next or the previous footnote in the textflow. The search begins at the current text input position.

```csharp
public Footnote GetItem(bool next);
```

```vbnet
Public Function GetItem([next] As Boolean) As Footnote
```

| Parameter | Description |
|---|---|
| next | If this parameter is true, the next footnote in the textflow is returned. If this parameter is false, the previous footnote in the textflow is returned. The next or the previous footnote is returned independent whether there is a footnote mark at the current text input position. |

#### GetItem(int)

Gets the footnote with the specified identifier.

```csharp
public Footnote GetItem(int id);
```

```vbnet
Public Function GetItem(id As Integer) As Footnote
```

| Parameter | Description |
|---|---|
| id | Specifies the footnote's identifier set with the footnote's constructor or the ID property. The method returns null, if a footnote with the specified identifier does not exist. |

#### GetItem(string)

Gets the footnote with the specified name.

```csharp
public Footnote GetItem(string name);
```

```vbnet
Public Function GetItem(name As String) As Footnote
```

| Parameter | Description |
|---|---|
| name | Specifies the footnote's name set with set with the footnote's constructor or the Name property. The method returns null, if a footnote with the specified name does not exist. |

### Return Value

The return value is null, if a footnote with the specified parameters could not be found. Otherwise, it is an object of the type [Footnote](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnote/llms-full.txt).

### Examples

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

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

Footnote result = footnoteCollection.GetItem(100);
result?.ScrollTo();
```

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

Dim result As Footnote = footnoteCollection.GetItem(100)
If result IsNot Nothing Then result.ScrollTo()
```

---

## Nearby

- **Previous:** [FootnoteCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/getenumerator-method/llms-full.txt)
- **Next:** [FootnoteCollection.HighlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/highlightmode-property/llms-full.txt)
