# UserDefinedPropertyDictionary.Names Property

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

- **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 > UserDefinedPropertyDictionary.Names Property
- **483 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/names-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/names-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/names-property/llms-full.txt

---

### Description

Gets a collection of all property names the dictionary contains.

### Syntax

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

```vbnet
Public ReadOnly Property Names As ICollection
```

### Examples

The following example enumerates the names of all custom document properties.

```csharp
UserDefinedPropertyDictionary properties = new();
properties.Add("ReviewStatus", "Approved");
properties.Add("Department", "Finance");
foreach (string name in properties.Names)
{
    Console.WriteLine($"Document property: {name}");
}
```

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [UserDefinedPropertyDictionary.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/item-property/llms-full.txt)
- **Next:** [UserDefinedPropertyDictionary.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/userdefinedpropertydictionary/remove-method/llms-full.txt)
