# EditableRegion.UserName Property

> Gets or sets the name of the user who can edit the region. This parameter can be null or an empty string to indicate, that no user name has been specified and the region can be edited by everyone.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > EditableRegion.UserName Property
- **669 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/editableregion/username-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/editableregion/username-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/editableregion/username-property/llms-full.txt

---

### Description

Gets or sets the name of the user who can edit the region. This parameter can be null or an empty string to indicate, that no user name has been specified and the region can be edited by everyone.

### Syntax

```csharp
public string UserName { get; set; }
```

```vbnet
Public Property UserName As String
```

### Examples

The following example marks selected contract text as editable by the review team by using `EditableRegion.UserName`.

```csharp
textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);

editableRegion.UserName = "Review Team";
if (!string.IsNullOrWhiteSpace(editableRegion.UserName))
{
    Console.WriteLine($"User Name: {editableRegion.UserName}");
}
```

```vbnet
textControl.Text = "Terms subject to legal review"
textControl.Select(0, textControl.Text.Length)
Dim editableRegion As New EditableRegion("ReviewTeam", 10)
textControl.EditableRegions.Add(editableRegion)

editableRegion.UserName = "Review Team"
If Not String.IsNullOrWhiteSpace(editableRegion.UserName) Then
    Console.WriteLine($"User Name: {editableRegion.UserName}")
End If
```

---

## Nearby

- **Previous:** [EditableRegion.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/editableregion/text-property/llms-full.txt)
- **Next:** [EditableRegionCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/editableregioncollection/llms-full.txt)
