# TextControl.UserNames Property

> Gets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.

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

---

### Description

Gets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all [editable regions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/llms-full.txt) that are related to these users can be edited.

### Syntax

```csharp
public string[] UserNames { get; set; }
```

```vbnet
Public Property UserNames As String()
```

### Examples

The following example uses `TextControl.UserNames` to configure user names as part of the text control workflow. The change is then applied to the active document or user interface.

```csharp
textControl.UserNames = new string[] { "Editor" };
textControl.Update();
```

```vbnet
textControl.UserNames = New String() { "Editor" }
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.UndoActionName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/undoactionname-property/llms-full.txt)
- **Next:** [TextControl.VerticalRulerBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/verticalrulerbar-property/llms-full.txt)
