# SaveSettings.UserDefinedDocumentProperties Property

> Sets a dictionary with all user-defined document properties which will be saved in the document. The property's value must be an object of the type UserDefinedPropertyDictionary.

- **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 > SaveSettings.UserDefinedDocumentProperties Property
- **535 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/userdefineddocumentproperties-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/userdefineddocumentproperties-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/userdefineddocumentproperties-property/llms-full.txt

---

### Description

Sets a dictionary with all user-defined document properties which will be saved in the document. The property's value must be an object of the type [UserDefinedPropertyDictionary](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/llms-full.txt).

### Syntax

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

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

### Examples

The following example attaches review metadata as user-defined document properties.

```csharp
UserDefinedPropertyDictionary properties = new();
properties.Add("ReviewStatus", "Approved");
properties.Add("Department", "Finance");

SaveSettings saveSettings = new();
saveSettings.UserDefinedDocumentProperties = properties;
textControl.Save("approved-report.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
Dim properties As New UserDefinedPropertyDictionary()
properties.Add("ReviewStatus", "Approved")
properties.Add("Department", "Finance")

Dim saveSettings As New SaveSettings()
saveSettings.UserDefinedDocumentProperties = properties
textControl.Save("approved-report.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.SignatureFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/savesettings/signaturefields-property/llms-full.txt)
- **Next:** [Section Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/llms-full.txt)
