TX Text Control .NET for WPF

Select Method

Method|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Selects text within the Text Control.

Syntax

public void Select(int start, int length);

Parameters

ParameterDescription
start

Specifies the selection's start position.

length

Specifies the number of selected characters.

Examples

The following example selects the requested part of the text control. The created object is then available to the surrounding document workflow.

textControl.Select(1, 1);
Console.WriteLine("Text Control is ready for use.");