TX Text Control .NET Server

ActivationState Property

Property|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as 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; }

Members

ValueDescription
ActivatedThe text view generator is activated, which means that it has the keyboard input focus.
DeactivatedThe text view generator is deactivated, which means that it has not the keyboard input focus.
DisabledThe 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}");