TX Text Control .NET Server

Select Method

Method|Introduced in 12.0
Namespace
TXTextControl
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

Selects text within the 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 report title and formats it as a heading.

textControl.Text = "Quarterly report\nPrepared for Contoso Ltd.";
textControl.Select(0, "Quarterly report".Length);
textControl.Selection.Bold = true;