ActivationState Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Gets or sets a value indicating the current activation state of the text view generator. It can be activated, deactivated or disabled.
Syntax
public ActivationState ActivationState { get; set; }Public Property ActivationState As ActivationStateMembers
| 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.
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}");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}")