# TableOfContents.Title Property

> Gets or sets a title for the table of contents. An empty string indicates that the table of contents has no title.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableOfContents.Title Property
- **562 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/title-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/title-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/title-property/llms-full.txt

---

### Description

Gets or sets a title for the table of contents. An empty string indicates that the table of contents has no title.

### Syntax

```csharp
public string Title { get; set; }
```

```vbnet
Public Property Title As String
```

### Examples

The following example creates a table of contents for the document's heading styles by using `TableOfContents.Title`.

```csharp
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);

tableOfContents.Title = "Quarterly report";
if (!string.IsNullOrWhiteSpace(tableOfContents.Title))
{
    Console.WriteLine($"Title: {tableOfContents.Title}");
}
```

```vbnet
Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)

tableOfContents.Title = "Quarterly report"
If Not String.IsNullOrWhiteSpace(tableOfContents.Title) Then
    Console.WriteLine($"Title: {tableOfContents.Title}")
End If
```

---

## Nearby

- **Previous:** [TableOfContents.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/text-property/llms-full.txt)
- **Next:** [TableOfContents.Update Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/update-method/llms-full.txt)
