# TextControl.DocumentSettings Property

> Gets a DocumentSettings object providing properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. When a document is loaded this object is filled with such information and all values are automatically stored when the document is saved.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.DocumentSettings Property
- **360 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentsettings-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentsettings-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentsettings-property/llms-full.txt

---

### Description

Gets a [DocumentSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/llms-full.txt) object providing properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. When a document is loaded this object is filled with such information and all values are automatically stored when the document is saved.

### Syntax

```csharp
public DocumentSettings DocumentSettings { get; }
```

```vbnet
Public ReadOnly Property DocumentSettings As DocumentSettings
```

### Examples

The following example includes the document settings value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Document Settings: {textControl.DocumentSettings}");
Console.WriteLine("Text Control is ready for use.");
```

```vbnet
Console.WriteLine($"Document Settings: {textControl.DocumentSettings}")
Console.WriteLine("Text Control is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextControl.DocumentPermissions Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documentpermissions-property/llms-full.txt)
- **Next:** [TextControl.DocumentTargetCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documenttargetcreated-event/llms-full.txt)
