# DocumentSettings.DocumentTitle Property

> Gets or sets the current document's title. It is an empty string, if there is no title contained in the current document.

- **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 > DocumentSettings.DocumentTitle Property
- **563 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/documenttitle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/documenttitle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/documenttitle-property/llms-full.txt

---

### Description

Gets or sets the current document's title. It is an empty string, if there is no title contained in the current document.

### Syntax

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

```vbnet
Public Property DocumentTitle As String
```

### Examples

The following example configures document settings for the current document by using `DocumentSettings.DocumentTitle`.

```csharp
DocumentSettings documentSettings = textControl.DocumentSettings;

documentSettings.DocumentTitle = "Quarterly results";
if (!string.IsNullOrWhiteSpace(documentSettings.DocumentTitle))
{
    Console.WriteLine($"Document Title: {documentSettings.DocumentTitle}");
}

documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";
```

```vbnet
Dim documentSettings As DocumentSettings = textControl.DocumentSettings

documentSettings.DocumentTitle = "Quarterly results"
If Not String.IsNullOrWhiteSpace(documentSettings.DocumentTitle) Then
    Console.WriteLine($"Document Title: {documentSettings.DocumentTitle}")
End If

documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"
```

---

## Nearby

- **Previous:** [DocumentSettings.DocumentSubject Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/documentsubject-property/llms-full.txt)
- **Next:** [DocumentSettings.EmbeddedFiles Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentsettings/embeddedfiles-property/llms-full.txt)
