# TextViewGenerator.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 Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.UserNames Property
- **577 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/usernames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/usernames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/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-server/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 applies bold formatting through the text view generator's selection by using `TextViewGenerator.UserNames`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.UserNames = new string[] { "Editor" };
if (textViewGenerator.UserNames != null)
{
    Console.WriteLine("Text View Generator: User Names is available.");
}
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

textViewGenerator.UserNames = New String() { "Editor" }
If textViewGenerator.UserNames IsNot Nothing Then
    Console.WriteLine("Text View Generator: User Names is available.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.UserInput Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/userinput-property/llms-full.txt)
- **Next:** [TextViewGenerator.VerticalRulerBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/verticalrulerbar-property/llms-full.txt)
