# FootnoteEventArgs Class

> The FootnoteEventArgs class provides data for the FootnoteCreated, FootnoteDeleted, FootnoteReferenceMarkEntered and FootnoteReferenceMarkLeft events. When a footnote is deleted, the Footnote object provided with the event data has the following valid properties: HighlightColor, HighlightMode, ID and Name. All other properties are undefined.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > FootnoteEventArgs Class
- **534 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnoteeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnoteeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnoteeventargs/llms-full.txt

---

### Description

The FootnoteEventArgs class provides data for the [FootnoteCreated](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/footnotecreated-event/llms-full.txt), [FootnoteDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/footnotedeleted-event/llms-full.txt), [FootnoteReferenceMarkEntered](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/footnotereferencemarkentered-event/llms-full.txt) and [FootnoteReferenceMarkLeft](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/footnotereferencemarkleft-event/llms-full.txt) events. When a footnote is deleted, the [Footnote](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnote/llms-full.txt) object provided with the event data has the following valid properties: HighlightColor, HighlightMode, ID and Name. All other properties are undefined.

### Syntax

```csharp
public class FootnoteEventArgs : EventArgs
```

```vbnet
Public Class FootnoteEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `FootnoteEventArgs.Footnote` while handling `FootnoteCreated`.

```csharp
textControl.FootnoteCreated += (_, e) =>
{
    e.Footnote?.ScrollTo();
};
```

```vbnet
AddHandler textControl.FootnoteCreated,
    Sub(sender, e)
        If e.Footnote IsNot Nothing Then e.Footnote.ScrollTo()
    End Sub
```

---

## In This Section

- [FootnoteEventArgs.Footnote Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnoteeventargs/footnote-property/llms-full.txt): Gets an object that represents the footnote which causes the event. It is of the type Footnote.

---

## Nearby

- **Previous:** [FootnoteCollection.StartNumber Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnotecollection/startnumber-property/llms-full.txt)
- **Next:** [FootnoteEventArgs.Footnote Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/footnoteeventargs/footnote-property/llms-full.txt)
