TX Text Control .NET Server

Selection Property

Property|Introduced in 22.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Gets or sets the current selection in the text part with the input focus. The property value is an object of the type Web.Selection.

Syntax

public TXTextControl.Web.Selection Selection { get; set; }

Examples

Selection belonged to the older server-control surface. In the current ASP.NET Core integration, use TextControlSettings.TextFieldsEditable for the corresponding editor configuration.

textControlSettings.TextFieldsEditable = true;
if (textControlSettings.TextFieldsEditable)
{
    Console.WriteLine("Text Fields Editable is enabled for Text Control Settings.");
}