# TextViewGenerator.ActivationState Property

> Gets or sets a value indicating the current activation state of the text view generator. It can be activated, deactivated or disabled.

- **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.ActivationState Property
- **580 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/activationstate-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/activationstate-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/activationstate-property/llms-full.txt

---

### Description

Gets or sets a value indicating the current activation state of the text view generator. It can be activated, deactivated or disabled.

### Syntax

```csharp
public ActivationState ActivationState { get; set; }
```

```vbnet
Public Property ActivationState As ActivationState
```

### Members

| Value | Description |
|---|---|
| Activated | The text view generator is activated, which means that it has the keyboard input focus. |
| Deactivated | The text view generator is deactivated, which means that it has not the keyboard input focus. |
| Disabled | The text view generator is disabled, which means that it cannot get the keyboard input focus. |

### Examples

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

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

textViewGenerator.ActivationState = TXTextControl.ServerVisualisation.ActivationState.Activated;
Console.WriteLine($"Activation State used by Text View Generator: {textViewGenerator.ActivationState}");
```

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

textViewGenerator.ActivationState = TXTextControl.ServerVisualisation.ActivationState.Activated
Console.WriteLine($"Activation State used by Text View Generator: {textViewGenerator.ActivationState}")
```

---

## Nearby

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