# SaveSettings.DocumentKeywords Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.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 > SaveSettings.DocumentKeywords Property
- **591 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/documentkeywords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/documentkeywords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/documentkeywords-property/llms-full.txt

---

### Description

Sets the document's keywords which will be saved in the document.

### Syntax

```csharp
public string[] DocumentKeywords { get; set; }
```

```vbnet
Public Property DocumentKeywords As String()
```

### Examples

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

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

saveSettings.DocumentKeywords = new string[] { "Quarterly report" };
if (saveSettings.DocumentKeywords != null)
{
    Console.WriteLine("Save Settings: Document Keywords is available.");
}

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

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

saveSettings.DocumentKeywords = New String() { "Quarterly report" }
If saveSettings.DocumentKeywords IsNot Nothing Then
    Console.WriteLine("Save Settings: Document Keywords is available.")
End If

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

---

## Nearby

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