# TableOfContentsEventArgs.TableOfContents Property

> Gets an object that represents the table of contents which causes the event. It is of the type TableOfContents.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.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 > TableOfContentsEventArgs.TableOfContents Property
- **346 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableofcontentseventargs/tableofcontents-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableofcontentseventargs/tableofcontents-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableofcontentseventargs/tableofcontents-property/llms-full.txt

---

### Description

Gets an object that represents the table of contents which causes the event. It is of the type [TableOfContents](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableofcontents/llms-full.txt).

### Syntax

```csharp
public TableOfContents TableOfContents { get; }
```

```vbnet
Public ReadOnly Property TableOfContents As TableOfContents
```

### Examples

The following example uses `TableOfContentsEventArgs.TableOfContents` while handling `TableOfContentsCreated`.

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableOfContentsEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableofcontentseventargs/llms-full.txt)
- **Next:** [TablePartCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablepartcollection/llms-full.txt)
