# UserDefinedPropertyDictionary.Values Property

> Gets a collection of all property values the dictionary contains.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.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 > UserDefinedPropertyDictionary.Values Property
- **494 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/userdefinedpropertydictionary/values-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/userdefinedpropertydictionary/values-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/userdefinedpropertydictionary/values-property/llms-full.txt

---

### Description

Gets a collection of all property values the dictionary contains.

### Syntax

```csharp
public ICollection Values { get; }
```

```vbnet
Public ReadOnly Property Values As ICollection
```

### Examples

The following example enumerates the stored values of all custom document properties.

```csharp
UserDefinedPropertyDictionary properties = new();
properties.Add("ReviewStatus", "Approved");
properties.Add("Department", "Finance");
foreach (object propertyValue in properties.Values)
{
    Console.WriteLine($"Document property value: {propertyValue}");
}
```

```vbnet
Dim properties As New UserDefinedPropertyDictionary()
properties.Add("ReviewStatus", "Approved")
properties.Add("Department", "Finance")
For Each propertyValue As Object In properties.Values
    Console.WriteLine($"Document property value: {propertyValue}")
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [UserDefinedPropertyDictionary.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/userdefinedpropertydictionary/remove-method/llms-full.txt)
- **Next:** [VersionInfo Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/llms-full.txt)
