TX Text Control .NET Server

Selection Property

Property|Introduced in 22.0
Namespace
TXTextControl.Web
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the current selection. The property value is an object of the type Web.Selection. For more information see the description of the Web.Selection class.

Syntax

Selection Selection { get; set; }

Examples

The following example configures IFormattedText.Selection and checks the resulting web document component setting before it is used.

iFormattedText.Selection = new TXTextControl.Web.Selection();
if (iFormattedText.Selection != null)
{
    Console.WriteLine("Selection is available for IFormatted Text.");
}