# DocumentSettings.DocumentKeywords Property

> Gets or sets the current document's keywords. The property value is null, if there are no keywords contained in the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.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 > DocumentSettings.DocumentKeywords Property
- **583 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentsettings/documentkeywords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentsettings/documentkeywords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentsettings/documentkeywords-property/llms-full.txt

---

### Description

Gets or sets the current document's keywords. The property value is null, if there are no keywords contained in the document.

### Syntax

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

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

### Examples

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

```csharp
DocumentSettings documentSettings = textControl.DocumentSettings;

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

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

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

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

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

---

## Nearby

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