# SaveSettings.DocumentSubject Property

> Sets the document's subject string which will be saved in the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > SaveSettings.DocumentSubject Property
- **577 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentsubject-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentsubject-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentsubject-property/llms-full.txt

---

### Description

Sets the document's subject string which will be saved in the document.

### Syntax

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

```vbnet
Public Property DocumentSubject As String
```

### Examples

The following example configures how the current document is exported to WordprocessingML by using `SaveSettings.DocumentSubject`.

```csharp
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.DocumentSubject = "FY 2026 performance";
if (!string.IsNullOrWhiteSpace(saveSettings.DocumentSubject))
{
    Console.WriteLine($"Document Subject: {saveSettings.DocumentSubject}");
}

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()

saveSettings.DocumentSubject = "FY 2026 performance"
If Not String.IsNullOrWhiteSpace(saveSettings.DocumentSubject) Then
    Console.WriteLine($"Document Subject: {saveSettings.DocumentSubject}")
End If

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.DocumentLevelJavaScriptActions Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/llms-full.txt)
- **Next:** [SaveSettings.DocumentTitle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documenttitle-property/llms-full.txt)
