# LoadSettings.UserDefinedDocumentProperties Property

> Gets a dictionary with all user-defined document properties contained in the loaded document. The property's value is an object of the type UserDefinedPropertyDictionary or null, if the document does not contain any user-defined property.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.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 > LoadSettings.UserDefinedDocumentProperties Property
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/userdefineddocumentproperties-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/userdefineddocumentproperties-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/userdefineddocumentproperties-property/llms-full.txt

---

### Description

Gets a dictionary with all user-defined document properties contained in the loaded document. The property's value is an object of the type [UserDefinedPropertyDictionary](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/llms-full.txt) or null, if the document does not contain any user-defined property.

### Syntax

```csharp
public UserDefinedPropertyDictionary UserDefinedDocumentProperties { get; }
```

```vbnet
Public ReadOnly Property UserDefinedDocumentProperties As UserDefinedPropertyDictionary
```

### Examples

The following example reads `LoadSettings.UserDefinedDocumentProperties` after the template has been loaded.

```csharp
LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"User Defined Document Properties: {loadSettings.UserDefinedDocumentProperties}");
```

```vbnet
Dim loadSettings As New LoadSettings()
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
Console.WriteLine($"User Defined Document Properties: {loadSettings.UserDefinedDocumentProperties}")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [LoadSettings.PDFImportSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/pdfimportsettings-property/llms-full.txt)
- **Next:** [MainText Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/maintext/llms-full.txt)
