TX Text Control .NET for WPF

Select Method

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

Description

Selects the misspelled word in the text.

Syntax

public void Select();

Examples

The following example locates the first spelling issue in a short document by using MisspelledWord.Select.

textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
    return;
}

misspelledWord.Select();
Console.WriteLine("Misspelled Word is ready for use.");