# DocumentSettings Class

> The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. A DocumentSettings object is provided through the TextControl.DocumentSettings or WPF.TextControl.DocumentSettings property. The object's values can be changed during a user is working on the document. When such a document is saved with one of the Save methods all settings are automatically stored but can be overwritten through the corresponding property of the SaveSettings class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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 > DocumentSettings Class
- **1141 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/llms-full.txt

---

### Description

The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. A DocumentSettings object is provided through the [TextControl.DocumentSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentsettings-property/llms-full.txt) or [WPF.TextControl.DocumentSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentsettings-property/llms-full.txt) property. The object's values can be changed during a user is working on the document. When such a document is saved with one of the [Save](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/save-method/llms-full.txt) methods all settings are automatically stored but can be overwritten through the corresponding property of the [SaveSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/llms-full.txt) class.

### Syntax

```csharp
public class DocumentSettings
```

```vbnet
Public Class DocumentSettings
```

### Examples

The following example configures document settings for the current document.

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

```vbnet
Dim documentSettings As DocumentSettings = textControl.DocumentSettings
documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"
```

---

## In This Section

- [DocumentSettings.Author Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/author-property/llms-full.txt): Gets or sets the author of the current document. It is an empty string, if there is no author contained in the current document.
- [DocumentSettings.CreationDate Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/creationdate-property/llms-full.txt): Gets or sets the document's creation date. It is January 1, 0001 in the Gregorian calendar, if there is no creation date contained in the current document.
- [DocumentSettings.CreatorApplication Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/creatorapplication-property/llms-full.txt): Gets or sets the application, which has created the current document. It is an empty string, if a creator application is not contained in the current document.
- [DocumentSettings.DocumentBasePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentbasepath-property/llms-full.txt): Gets or sets a file path that is used to search for resources like images or hypertext links. This path is added to all relative file paths used in the document.
- [DocumentSettings.DocumentKeywords Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentkeywords-property/llms-full.txt): Gets or sets the current document's keywords. The property value is null, if there are no keywords contained in the document.
- [DocumentSettings.DocumentSubject Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentsubject-property/llms-full.txt): Gets or sets the subject string of the current document. It is an empty string, if there is no subject string contained in the document.
- [DocumentSettings.DocumentTitle Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documenttitle-property/llms-full.txt): Gets or sets the current document's title. It is an empty string, if there is no title contained in the current document.
- [DocumentSettings.EmbeddedFiles Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/embeddedfiles-property/llms-full.txt): Gets or sets an array of EmbeddedFile objects providing the name, data and additional optional properties of files, which are embedded in the current document. The property value is null, if there are no embedded files contained in the document.
- [DocumentSettings.UserDefinedDocumentProperties Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/userdefineddocumentproperties-property/llms-full.txt): Gets or sets a dictionary with all user-defined document properties contained in the current document. The property's value is an object of the type UserDefinedPropertyDictionary or null, if the current document does not contain any user-defined property.

---

## Nearby

- **Previous:** [DocumentPermissions.ReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentpermissions/readonly-property/llms-full.txt)
- **Next:** [DocumentSettings.Author Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/author-property/llms-full.txt)
