# TextViewGenerator.UserInput Property

> Gets the UserInput object, which can be used to inform the TextViewGenerator about user input. The generator uses this information to generate a new view.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.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.UserInput Property
- **452 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/userinput-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/userinput-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/userinput-property/llms-full.txt

---

### Description

Gets the [UserInput](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/llms-full.txt) object, which can be used to inform the TextViewGenerator about user input. The generator uses this information to generate a new view.

### Syntax

```csharp
public UserInput UserInput { get; }
```

```vbnet
Public ReadOnly Property UserInput As UserInput
```

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.UserInput`.

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

Console.WriteLine($"User Input: {textViewGenerator.UserInput}");
Console.WriteLine("Text View Generator is ready for use.");
```

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

Console.WriteLine($"User Input: {textViewGenerator.UserInput}")
Console.WriteLine("Text View Generator is ready for use.")
```

### Limitations

Read only.

Runtime only.

---

## Nearby

- **Previous:** [TextViewGenerator.UndoActionName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/undoactionname-property/llms-full.txt)
- **Next:** [TextViewGenerator.UserNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/usernames-property/llms-full.txt)
