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 in a text part. The property value is an object of the type Web.Selection. For more information see the description of the Web.Selection class.

Syntax

public Selection Selection { get; set; }

Examples

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

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